Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancements for MPLS support #1181

Merged
merged 2 commits into from Feb 22, 2021
Merged

Enhancements for MPLS support #1181

merged 2 commits into from Feb 22, 2021

Conversation

qbdwlr
Copy link
Contributor

@qbdwlr qbdwlr commented Jan 14, 2021

This PR defines missing support for MPLS as compared to equivalent IPv4/IPv6 support:

  • bulking APIs for MPLS in-segment entries
  • per-RIF enable/disable of MPLS family

Signed-off-by: Ann Pokora <apokora@juniper.net>
inc/saiswitch.h Outdated
* @flags READ_ONLY
*/
SAI_SWITCH_ATTR_AVAILABLE_MPLS_INSEG_ENTRY,

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please consider using sai_object_type_get_availability()
This is generic object CRM API, replacing the old approach of specific attribute per object

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there an example of this that I can see? I don't see any usage of sai_object_type_get_availability() in latest CrmOrch.cpp.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

AFAIK, Sonic hasn't yet ported existing CRM code to the new API, but is using the new API for new objects, such as debug counters

Copy link
Collaborator

Choose a reason for hiding this comment

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

Signed-off-by: Ann Pokora <apokora@juniper.net>
*
* @type bool
* @flags CREATE_AND_SET
* @default false
Copy link
Contributor

Choose a reason for hiding this comment

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

default it to true? just like IPv4 and IPv6?

@rlhui
Copy link
Collaborator

rlhui commented Feb 16, 2021

@itaibaz , @phshaikh - would you like to sign off this? Thanks.

@rlhui rlhui merged commit 96adc95 into opencomputeproject:master Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants