sai_status_t vs_generic_get_neighbor_entry( _In_ const sai_neighbor_entry_t *neighbor_entry, _In_ uint32_t attr_count, _Out_ sai_attribute_t *attr_list) { SWSS_LOG_ENTER(); std::string str_neighbor_entry = sai_serialize_neighbor_entry(*neighbor_entry); return internal_vs_generic_get( SAI_OBJECT_TYPE_NEIGHBOR_ENTRY, str_neighbor_entry, neighbor_entry->switch_id, attr_count, attr_list); }
sai_status_t redis_generic_set( _In_ sai_object_type_t object_type, _In_ const sai_neighbor_entry_t* neighbor_entry, _In_ const sai_attribute_t *attr) { SWSS_LOG_ENTER(); std::string str_neighbor_entry; sai_serialize_neighbor_entry(*neighbor_entry, str_neighbor_entry); sai_status_t status = internal_redis_generic_set( object_type, str_neighbor_entry, attr); return status; }