SAI
SAI copied to clipboard
CRM for ECMP and VoQ System
This PR brings in CRM query attributes for IP only Nexthop Group, Members and VoQ System. Old PR is closed because of enum shifts: https://github.com/opencomputeproject/SAI/pull/1763
Here is a workflow for these removed attributes. // Available System Ports sai_object_type_get_availability(<switch_id>, SAI_OBJECT_TYPE_SYSTEM_PORT, 0, NULL, &count)
// Available Fabric Ports sai_attribute_t attr[1]; attr[0].id = SAI_PORT_ATTR_TYPE; attr[0].value = SAI_PORT_TYPE_FABRIC; sai_object_type_get_availability(<switch_id>, SAI_OBJECT_TYPE_PORT, 1, attr, &count)
// Avaiable (underlay) IP nexthopgroups sai_attribute_t attr[1]; attr[0].id = SAI_NEXT_HOP_GROUP_ATTR_TYPE; attr[0].value = SAI_NEXT_HOP_GROUP_TYPE_DYNAMIC_UNORDERED_ECMP;
attr[1].id = SAI_NEXT_HOP_GROUP_ATTR_HIERARCHICAL_NEXTHOP; attr[1].value = false; sai_object_type_get_availability(<switch_id>, SAI_OBJECT_TYPE_NEXTHOPGROUP, 2, attr, &count)
// Avaiable (overlay) IP+Tunnel nexthopgroups attr[1].id = SAI_NEXT_HOP_GROUP_ATTR_HIERARCHICAL_NEXTHOP; attr[1].value = true; sai_object_type_get_availability(<switch_id>, SAI_OBJECT_TYPE_NEXTHOPGROUP, 2, attr, &count)
For Systems with dedicated mcast and cast. sai_attribute_t attr[1]; attr[0].id = SAI_QUEUE_ATTR_TYPE; attr[0].value = SAI_QUEUE_TYPE_UNICAST_VOQ; // or SAI_QUEUE_TYPE_MULTICAST_VOQ sai_object_type_get_availability(<switch_id>, SAI_OBJECT_TYPE_QUEUE, 1, attr, &count)
please resolve conflicts
please resolve conflicts
Done
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
@j-bos , @rck-innovium please revisit if you'd approve this? Thanks.
@JaiOCP please close this one. Thanks.