Skip to content

Commit

Permalink
sonic-sairedis: Serialization for QOS components (sonic-net#17)
Browse files Browse the repository at this point in the history
* Added serialization data for QOS components
Signed-off-by:  hrachya@mellanox.com
  • Loading branch information
hrachyam authored and stcheng committed May 4, 2016
1 parent 07b345b commit 924237a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions common/saiserialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,23 @@ sai_serialization_map_t sai_get_serialization_map()

map[SAI_OBJECT_TYPE_ACL_TABLE][SAI_ACL_TABLE_ATTR_PRIORITY] = SAI_SERIALIZATION_TYPE_UINT32;

map[SAI_OBJECT_TYPE_QOS_MAPS][SAI_QOS_MAP_ATTR_TYPE] = SAI_SERIALIZATION_TYPE_INT32;
map[SAI_OBJECT_TYPE_QOS_MAPS][SAI_QOS_MAP_ATTR_MAP_TO_VALUE_LIST] = SAI_SERIALIZATION_TYPE_QOS_MAP_LIST;

map[SAI_OBJECT_TYPE_WRED][SAI_WRED_ATTR_YELLOW_ENABLE] = SAI_SERIALIZATION_TYPE_INT32;
map[SAI_OBJECT_TYPE_WRED][SAI_WRED_ATTR_YELLOW_MAX_THRESHOLD] = SAI_SERIALIZATION_TYPE_INT32;
map[SAI_OBJECT_TYPE_WRED][SAI_WRED_ATTR_GREEN_ENABLE] = SAI_SERIALIZATION_TYPE_INT32;
map[SAI_OBJECT_TYPE_WRED][SAI_WRED_ATTR_GREEN_MAX_THRESHOLD] = SAI_SERIALIZATION_TYPE_INT32;

map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_SPEED] = SAI_SERIALIZATION_TYPE_UINT32;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_ADMIN_STATE] = SAI_SERIALIZATION_TYPE_BOOL;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_OPER_STATUS] = SAI_SERIALIZATION_TYPE_INT32;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_PORT_VLAN_ID] = SAI_SERIALIZATION_TYPE_UINT16;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_FDB_LEARNING] = SAI_SERIALIZATION_TYPE_INT32;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_HW_LANE_LIST] = SAI_SERIALIZATION_TYPE_UINT32_LIST;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_QOS_DSCP_TO_TC_MAP] = SAI_SERIALIZATION_TYPE_OBJECT_ID;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_QOS_TC_TO_QUEUE_MAP] = SAI_SERIALIZATION_TYPE_OBJECT_ID;


map[SAI_OBJECT_TYPE_NEXT_HOP][SAI_NEXT_HOP_ATTR_TYPE] = SAI_SERIALIZATION_TYPE_INT32;
map[SAI_OBJECT_TYPE_NEXT_HOP][SAI_NEXT_HOP_ATTR_IP] = SAI_SERIALIZATION_TYPE_IP_ADDRESS;
Expand Down

0 comments on commit 924237a

Please sign in to comment.