sonic-swss
sonic-swss copied to clipboard
Switch Capability support
Signed-off-by: Prabhu Sreenivasan [email protected]
What I did Added switch capability support where Orchagent queries the switch for the list of supported objects (SAI_SWITCH_ATTR_SUPPORTED_OBJECT_TYPE_LIST) and identifies the capabilities / features supported by the switch. It further updates the SWITCH_TABLE:switch on APPL_DB with supported capabilities
eg:
sonic-db-cli APPL_DB hgetall "SWITCH_TABLE:switch"
threshold_supported
True
Why I did it This allows applications/users to understand whether a feature is supported on a device / SAI implementation.
How I verified it Query SWITCH_TABLE:switch on APPL_DB for "threshold_supported" entry.
Related PRs https://github.com/Azure/sonic-sairedis/pull/728
Details if related
The vslib support for the same is on Azure/sonic-sairedis#728.
retest vs please
@lguohan, Can you please add Label:brcm-upstream to this PR
How can I fix the below failure? It seems to be coming on latest swss builds
@azure-pipelinesazure-pipelines / Azure.sonic-swss Build log #L12 The container 9968994 could not be found.