From 123395cee09143004742ccef9872016b20a39dcf Mon Sep 17 00:00:00 2001 From: Akhilesh Samineni Date: Thu, 17 Oct 2019 11:03:21 -0700 Subject: [PATCH] Corrected indentation issues --- meta/sai_meta.cpp | 4 +- vslib/src/sai_vs_nat.cpp | 99 +++++++++++++++++++--------------------- 2 files changed, 50 insertions(+), 53 deletions(-) diff --git a/meta/sai_meta.cpp b/meta/sai_meta.cpp index 0845f8d67..0a5d21720 100644 --- a/meta/sai_meta.cpp +++ b/meta/sai_meta.cpp @@ -6939,7 +6939,7 @@ sai_status_t meta_sai_remove_nat_entry( if (status == SAI_STATUS_SUCCESS) { - meta_generic_validation_post_remove(meta_key); + meta_generic_validation_post_remove(meta_key); } return status; @@ -7032,7 +7032,7 @@ sai_status_t meta_sai_get_nat_entry( if (status == SAI_STATUS_SUCCESS) { - meta_generic_validation_post_get(meta_key, nat_entry->switch_id, attr_count, attr_list); + meta_generic_validation_post_get(meta_key, nat_entry->switch_id, attr_count, attr_list); } return status; diff --git a/vslib/src/sai_vs_nat.cpp b/vslib/src/sai_vs_nat.cpp index f4a7f19af..1af45f4c9 100644 --- a/vslib/src/sai_vs_nat.cpp +++ b/vslib/src/sai_vs_nat.cpp @@ -6,29 +6,29 @@ sai_status_t vs_create_nat_entry( _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) { - MUTEX(); - SWSS_LOG_ENTER(); + MUTEX(); + SWSS_LOG_ENTER(); - return SAI_STATUS_NOT_IMPLEMENTED; + return SAI_STATUS_NOT_IMPLEMENTED; } sai_status_t vs_remove_nat_entry( _In_ const sai_nat_entry_t *nat_entry) { - MUTEX(); - SWSS_LOG_ENTER(); + MUTEX(); + SWSS_LOG_ENTER(); - return SAI_STATUS_NOT_IMPLEMENTED; + return SAI_STATUS_NOT_IMPLEMENTED; } sai_status_t vs_set_nat_entry_attribute( _In_ const sai_nat_entry_t *nat_entry, _In_ const sai_attribute_t *attr) { - MUTEX(); - SWSS_LOG_ENTER(); + MUTEX(); + SWSS_LOG_ENTER(); - return SAI_STATUS_NOT_IMPLEMENTED; + return SAI_STATUS_NOT_IMPLEMENTED; } sai_status_t vs_get_nat_entry_attribute( @@ -36,10 +36,10 @@ sai_status_t vs_get_nat_entry_attribute( _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) { - MUTEX(); - SWSS_LOG_ENTER(); + MUTEX(); + SWSS_LOG_ENTER(); - return SAI_STATUS_NOT_IMPLEMENTED; + return SAI_STATUS_NOT_IMPLEMENTED; } sai_status_t vs_bulk_create_nat_entry( @@ -50,10 +50,10 @@ sai_status_t vs_bulk_create_nat_entry( _In_ sai_bulk_op_error_mode_t mode, _Out_ sai_status_t *object_statuses) { - MUTEX(); - SWSS_LOG_ENTER(); + MUTEX(); + SWSS_LOG_ENTER(); - return SAI_STATUS_NOT_IMPLEMENTED; + return SAI_STATUS_NOT_IMPLEMENTED; } sai_status_t vs_bulk_remove_nat_entry( @@ -62,11 +62,10 @@ sai_status_t vs_bulk_remove_nat_entry( _In_ sai_bulk_op_error_mode_t mode, _Out_ sai_status_t *object_statuses) { - MUTEX(); - SWSS_LOG_ENTER(); - - return SAI_STATUS_NOT_IMPLEMENTED; + MUTEX(); + SWSS_LOG_ENTER(); + return SAI_STATUS_NOT_IMPLEMENTED; } sai_status_t vs_bulk_set_nat_entry_attribute( @@ -76,11 +75,10 @@ sai_status_t vs_bulk_set_nat_entry_attribute( _In_ sai_bulk_op_error_mode_t mode, _Out_ sai_status_t *object_statuses) { - MUTEX(); - SWSS_LOG_ENTER(); - - return SAI_STATUS_NOT_IMPLEMENTED; + MUTEX(); + SWSS_LOG_ENTER(); + return SAI_STATUS_NOT_IMPLEMENTED; } sai_status_t vs_bulk_get_nat_entry_attribute( @@ -91,11 +89,10 @@ sai_status_t vs_bulk_get_nat_entry_attribute( _In_ sai_bulk_op_error_mode_t mode, _Out_ sai_status_t *object_statuses) { - MUTEX(); - SWSS_LOG_ENTER(); - - return SAI_STATUS_NOT_IMPLEMENTED; + MUTEX(); + SWSS_LOG_ENTER(); + return SAI_STATUS_NOT_IMPLEMENTED; } sai_status_t vs_create_nat_zone_counter( @@ -104,30 +101,30 @@ sai_status_t vs_create_nat_zone_counter( _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) { - MUTEX(); - SWSS_LOG_ENTER(); + MUTEX(); + SWSS_LOG_ENTER(); - return SAI_STATUS_NOT_IMPLEMENTED; + return SAI_STATUS_NOT_IMPLEMENTED; } sai_status_t vs_remove_nat_zone_counter( _In_ sai_object_id_t nat_zone_counter_id) { - MUTEX(); - SWSS_LOG_ENTER(); + MUTEX(); + SWSS_LOG_ENTER(); - return SAI_STATUS_NOT_IMPLEMENTED; + return SAI_STATUS_NOT_IMPLEMENTED; } sai_status_t vs_set_nat_zone_counter_attribute( _In_ sai_object_id_t nat_zone_counter_id, _In_ const sai_attribute_t *attr) { - MUTEX(); - SWSS_LOG_ENTER(); + MUTEX(); + SWSS_LOG_ENTER(); - return SAI_STATUS_NOT_IMPLEMENTED; + return SAI_STATUS_NOT_IMPLEMENTED; } sai_status_t vs_get_nat_zone_counter_attribute( @@ -135,26 +132,26 @@ sai_status_t vs_get_nat_zone_counter_attribute( _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) { - MUTEX(); - SWSS_LOG_ENTER(); + MUTEX(); + SWSS_LOG_ENTER(); - return SAI_STATUS_NOT_IMPLEMENTED; + return SAI_STATUS_NOT_IMPLEMENTED; } const sai_nat_api_t vs_nat_api = { - vs_create_nat_entry, - vs_remove_nat_entry, - vs_set_nat_entry_attribute, - vs_get_nat_entry_attribute, + vs_create_nat_entry, + vs_remove_nat_entry, + vs_set_nat_entry_attribute, + vs_get_nat_entry_attribute, - vs_bulk_create_nat_entry, - vs_bulk_remove_nat_entry, - vs_bulk_set_nat_entry_attribute, - vs_bulk_get_nat_entry_attribute, + vs_bulk_create_nat_entry, + vs_bulk_remove_nat_entry, + vs_bulk_set_nat_entry_attribute, + vs_bulk_get_nat_entry_attribute, - vs_create_nat_zone_counter, - vs_remove_nat_zone_counter, - vs_set_nat_zone_counter_attribute, - vs_get_nat_zone_counter_attribute, + vs_create_nat_zone_counter, + vs_remove_nat_zone_counter, + vs_set_nat_zone_counter_attribute, + vs_get_nat_zone_counter_attribute, };