Skip to content

Commit

Permalink
[sairedis] Add missing SAI interface apis (#827)
Browse files Browse the repository at this point in the history
Export presence is needed by pyext module.
  • Loading branch information
kcudnik authored Apr 23, 2021
1 parent bf87eb4 commit 9672423
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
55 changes: 55 additions & 0 deletions lib/src/sai_redis_interfacequery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,58 @@ sai_status_t sai_dbg_generate_dump(

return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t sai_bulk_get_attribute(
_In_ sai_object_id_t switch_id,
_In_ sai_object_type_t object_type,
_In_ uint32_t object_count,
_In_ const sai_object_key_t *object_key,
_Inout_ uint32_t *attr_count,
_Inout_ sai_attribute_t **attr_list,
_Inout_ sai_status_t *object_statuses)
{
SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t sai_get_maximum_attribute_count(
_In_ sai_object_id_t switch_id,
_In_ sai_object_type_t object_type,
_Out_ uint32_t *count)
{
SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t sai_get_object_count(
_In_ sai_object_id_t switch_id,
_In_ sai_object_type_t object_type,
_Out_ uint32_t *count)
{
SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t sai_get_object_key(
_In_ sai_object_id_t switch_id,
_In_ sai_object_type_t object_type,
_Inout_ uint32_t *object_count,
_Inout_ sai_object_key_t *object_list)
{
SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t sai_query_stats_capability(
_In_ sai_object_id_t switch_id,
_In_ sai_object_type_t object_type,
_Inout_ sai_stat_capability_list_t *stats_capability)
{
SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}
12 changes: 12 additions & 0 deletions lib/src/sai_redis_tam.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
#include "sai_redis.h"

sai_status_t sai_tam_telemetry_get_data(
_In_ sai_object_id_t switch_id,
_In_ sai_object_list_t obj_list,
_In_ bool clear_on_read,
_Inout_ sai_size_t *buffer_size,
_Out_ void *buffer)
{
SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

REDIS_GENERIC_QUAD(TAM,tam);
REDIS_GENERIC_QUAD(TAM_MATH_FUNC,tam_math_func);
REDIS_GENERIC_QUAD(TAM_REPORT,tam_report);
Expand Down

0 comments on commit 9672423

Please sign in to comment.