-
Notifications
You must be signed in to change notification settings - Fork 1.8k
sonic-yang-models updates for MPLS #7881
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,6 +68,13 @@ module sonic-interface { | |
| } | ||
| default "0"; | ||
| } | ||
|
||
| leaf mpls { | ||
| description "Enable/disable MPLS routing for the interface"; | ||
| type enumeration { | ||
| enum enable; | ||
| enum disable; | ||
| } | ||
| } | ||
| } | ||
| /* end of INTERFACE_LIST */ | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,6 +80,13 @@ module sonic-vlan { | |
| } | ||
| default "0"; | ||
| } | ||
| leaf mpls { | ||
| description "Enable/disable MPLS routing for the vlan interface"; | ||
| type enumeration { | ||
| enum enable; | ||
| enum disable; | ||
|
||
| } | ||
| } | ||
| } | ||
| /* end of VLAN_INTERFACE_LIST */ | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests for MPLS CRM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kperumalbfn I looked at the existing CRM tests in sonic-yang-models. It appears that there exist currently generic parameter checking that is applicable for all CRM types. I don't think there needs to be anything specific for MPLS, since it can already make use of the generic CRM tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kperumalbfn I have added CRM tests for the 2 MPLS CRM types as requested.