Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions inc/saiport.h
Original file line number Diff line number Diff line change
Expand Up @@ -2136,6 +2136,21 @@ typedef enum _sai_port_attr_t
*/
SAI_PORT_ATTR_FEC_ALIGNMENT_LOCK,

/**
* @brief Fabric port isolation setting.
*
* true: The link may be enabled in serdes level and the
* MAC level, but the link partner will not use
* it for traffic distribution.
* false: Undo the isolation operation.
* This attribute is for fabric links only.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add something like this in the comment section.
Refer sairouterinterface.h

@condition SAI_PORT_ATTR_TYPE == SAI_PORT_TYPE_FABRIC

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

SAI_PORT_ATTR_TYPE is a read only attribute , and as far as I know that @condition not works for read only attribute. So checking with you again about if we need to make this change ?

thank you

Jie

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried add the @condition, and the metadata check failed,

it looks like based on the following 3 checks, we can not use @condition check for read only attribute. thank you

switch ((int)md->flags)

switch ((int)md->flags)

META_MD_ASSERT_FAIL(md, "read only attribute can't be valid only");

*
* @type bool
* @flags CREATE_AND_SET
* @default false
*/
SAI_PORT_ATTR_FABRIC_ISOLATE,

/**
* @brief End of attributes
*/
Expand Down