Skip to content

Commit

Permalink
Corrected indentation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AkhileshSamineni committed Oct 17, 2019
1 parent 80bdc86 commit 123395c
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 53 deletions.
4 changes: 2 additions & 2 deletions meta/sai_meta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
99 changes: 48 additions & 51 deletions vslib/src/sai_vs_nat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,40 @@ 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(
_In_ const sai_nat_entry_t *nat_entry,
_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(
Expand All @@ -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(
Expand All @@ -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(
Expand All @@ -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(
Expand All @@ -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(
Expand All @@ -104,57 +101,57 @@ 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(
_In_ sai_object_id_t nat_zone_counter_id,
_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,
};

0 comments on commit 123395c

Please sign in to comment.