sonic-swss icon indicating copy to clipboard operation
sonic-swss copied to clipboard

Switch Capability support

Open PrabhuSreenivasan opened this issue 4 years ago • 4 comments

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

PrabhuSreenivasan avatar Dec 04 '20 12:12 PrabhuSreenivasan

The vslib support for the same is on Azure/sonic-sairedis#728.

PrabhuSreenivasan avatar Dec 11 '20 02:12 PrabhuSreenivasan

retest vs please

PrabhuSreenivasan avatar Dec 15 '20 07:12 PrabhuSreenivasan

@lguohan, Can you please add Label:brcm-upstream to this PR

PrabhuSreenivasan avatar Dec 15 '20 17:12 PrabhuSreenivasan

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.

PrabhuSreenivasan avatar Feb 02 '21 13:02 PrabhuSreenivasan