Skip to content

Commit

Permalink
Merge pull request sonic-net#338 from yxieca/v1.3.3
Browse files Browse the repository at this point in the history
[SAI] upgrade to SAI header version v1.3.3
  • Loading branch information
yxieca authored Aug 17, 2018
2 parents 9380373 + 7561626 commit 1c06195
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 1 deletion.
43 changes: 43 additions & 0 deletions lib/src/sai_redis_routerintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,50 @@

REDIS_GENERIC_QUAD(ROUTER_INTERFACE,router_interface);

sai_status_t redis_get_router_interface_stats(
_In_ sai_object_id_t router_interface_id,
_In_ uint32_t number_of_counters,
_In_ const sai_router_interface_stat_t *counter_ids,
_Out_ uint64_t *counters)
{
MUTEX();

SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t redis_get_router_interface_stats_ext(
_In_ sai_object_id_t router_interface_id,
_In_ uint32_t number_of_counters,
_In_ const sai_router_interface_stat_t *counter_ids,
_In_ sai_stats_mode_t mode,
_Out_ uint64_t *counters)
{
MUTEX();

SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t redis_clear_router_interface_stats(
_In_ sai_object_id_t router_interface_id,
_In_ uint32_t number_of_counters,
_In_ const sai_router_interface_stat_t *counter_ids)
{
MUTEX();

SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

const sai_router_interface_api_t redis_router_interface_api = {

REDIS_GENERIC_QUAD_API(router_interface)

redis_get_router_interface_stats,
redis_get_router_interface_stats_ext,
redis_clear_router_interface_stats,
};
43 changes: 43 additions & 0 deletions vslib/src/sai_vs_router_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,50 @@

VS_GENERIC_QUAD(ROUTER_INTERFACE,router_interface);

sai_status_t vs_get_router_interface_stats(
_In_ sai_object_id_t router_interface_id,
_In_ uint32_t number_of_counters,
_In_ const sai_router_interface_stat_t *counter_ids,
_Out_ uint64_t *counters)
{
MUTEX();

SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t vs_get_router_interface_stats_ext(
_In_ sai_object_id_t router_interface_id,
_In_ uint32_t number_of_counters,
_In_ const sai_router_interface_stat_t *counter_ids,
_In_ sai_stats_mode_t mode,
_Out_ uint64_t *counters)
{
MUTEX();

SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t vs_clear_router_interface_stats(
_In_ sai_object_id_t router_interface_id,
_In_ uint32_t number_of_counters,
_In_ const sai_router_interface_stat_t *counter_ids)
{
MUTEX();

SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

const sai_router_interface_api_t vs_router_interface_api = {

VS_GENERIC_QUAD_API(router_interface)

vs_get_router_interface_stats,
vs_get_router_interface_stats_ext,
vs_clear_router_interface_stats,
};

0 comments on commit 1c06195

Please sign in to comment.