Skip to content

Commit

Permalink
Change some error code to SAI_STATUS_ITEM_ALREADY_EXISTS (sonic-net#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuotian Cheng authored Oct 24, 2016
1 parent e8ce8e5 commit 3f61a44
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions meta/sai_meta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ sai_status_t meta_generic_validation_create(
{
SWSS_LOG_ERROR("object key %s already exists", key.c_str());

return SAI_STATUS_INVALID_PARAMETER;
return SAI_STATUS_ITEM_ALREADY_EXISTS;
}

break;
Expand Down Expand Up @@ -3371,7 +3371,7 @@ sai_status_t meta_sai_validate_fdb_entry(
{
SWSS_LOG_ERROR("object key %s already exists", key_fdb.c_str());

return SAI_STATUS_INVALID_PARAMETER;
return SAI_STATUS_ITEM_ALREADY_EXISTS;
}

return SAI_STATUS_SUCCESS;
Expand Down Expand Up @@ -3666,7 +3666,7 @@ sai_status_t meta_sai_validate_neighbor_entry(
{
SWSS_LOG_ERROR("object key %s already exists", key_neighbor.c_str());

return SAI_STATUS_INVALID_PARAMETER;
return SAI_STATUS_ITEM_ALREADY_EXISTS;
}

return SAI_STATUS_SUCCESS;
Expand Down Expand Up @@ -3908,7 +3908,7 @@ sai_status_t meta_sai_validate_vlan_id(
{
SWSS_LOG_ERROR("object key %s already exists", key_vlan.c_str());

return SAI_STATUS_INVALID_PARAMETER;
return SAI_STATUS_ITEM_ALREADY_EXISTS;
}

return SAI_STATUS_SUCCESS;
Expand Down Expand Up @@ -4218,7 +4218,7 @@ sai_status_t meta_sai_validate_route_entry(
{
SWSS_LOG_ERROR("object key %s already exists", key_route.c_str());

return SAI_STATUS_INVALID_PARAMETER;
return SAI_STATUS_ITEM_ALREADY_EXISTS;
}

return SAI_STATUS_SUCCESS;
Expand Down

0 comments on commit 3f61a44

Please sign in to comment.