SAI icon indicating copy to clipboard operation
SAI copied to clipboard

CRM for ECMP and VoQ System

Open JaiOCP opened this issue 1 year ago • 6 comments

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)

JaiOCP avatar Mar 13 '23 21:03 JaiOCP

please resolve conflicts

kcudnik avatar Mar 22 '23 17:03 kcudnik

please resolve conflicts

Done

JaiOCP avatar Mar 27 '23 18:03 JaiOCP

/azp run

kcudnik avatar Jun 29 '23 15:06 kcudnik

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Jun 29 '23 15:06 azure-pipelines[bot]

@j-bos , @rck-innovium please revisit if you'd approve this? Thanks.

rlhui avatar Aug 10 '23 02:08 rlhui

@JaiOCP please close this one. Thanks.

rlhui avatar Sep 01 '23 05:09 rlhui