-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[YANG] SRv6 yang model followup fix #21466
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 |
|---|---|---|
|
|
@@ -12,12 +12,12 @@ | |
| "sonic-srv6:SRV6_MY_SIDS": { | ||
| "SRV6_MY_SIDS_LIST": [ | ||
| { | ||
| "ip_address": "FCBB:BBBB:20::", | ||
| "ip_prefix": "FCBB:BBBB:20::/48", | ||
| "locator": "MAIN", | ||
| "action": "uN" | ||
| }, | ||
| { | ||
| "ip_address": "FCBB:BBBB:20:F1::", | ||
| "ip_prefix": "FCBB:BBBB:20:F1::/64", | ||
| "locator": "MAIN", | ||
| "action": "uDT46" | ||
| } | ||
|
|
@@ -39,12 +39,12 @@ | |
| "sonic-srv6:SRV6_MY_SIDS": { | ||
| "SRV6_MY_SIDS_LIST": [ | ||
| { | ||
| "ip_address": "FCBB:BBBB:20::", | ||
| "ip_prefix": "FCBB:BBBB:20::/48", | ||
| "locator": "MAIN", | ||
| "action": "uN" | ||
| }, | ||
| { | ||
| "ip_address": "FCBB:BBBB:20:F1::", | ||
| "ip_prefix": "FCBB:BBBB:20:F1::/64", | ||
| "locator": "MAIN", | ||
| "action": "uDT46" | ||
| } | ||
|
|
@@ -66,12 +66,12 @@ | |
| "sonic-srv6:SRV6_MY_SIDS": { | ||
| "SRV6_MY_SIDS_LIST": [ | ||
| { | ||
| "ip_address": "FCBB:BBBB:20::", | ||
| "ip_prefix": "FCBB:BBBB:20::/48", | ||
| "locator": "MAIN", | ||
| "action": "uN" | ||
| }, | ||
| { | ||
| "ip_address": "FCBB:BBBB:20:F1::", | ||
| "ip_prefix": "FCBB:BBBB:20:F1::/64", | ||
| "locator": "MAIN", | ||
| "action": "uDT46" | ||
| } | ||
|
|
@@ -92,20 +92,20 @@ | |
| "sonic-srv6:SRV6_MY_SIDS": { | ||
| "SRV6_MY_SIDS_LIST": [ | ||
| { | ||
| "ip_address": "FCBB:BBBB:20::", | ||
| "ip_prefix": "FCBB:BBBB:20::/48", | ||
| "locator": "None", | ||
| "action": "uN" | ||
| }, | ||
| { | ||
| "ip_address": "FCBB:BBBB:20:F1::", | ||
| "ip_prefix": "FCBB:BBBB:20:F1::/64", | ||
| "locator": "MAIN", | ||
| "action": "uDT46" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "SRV6_MY_SID_INVALID_IP_ADDR": { | ||
| "SRV6_MY_SID_INVALID_IP_PREFIX": { | ||
| "sonic-srv6:sonic-srv6": { | ||
| "sonic-srv6:SRV6_MY_LOCATORS": { | ||
| "SRV6_MY_LOCATORS_LIST": [ | ||
|
|
@@ -118,20 +118,20 @@ | |
| "sonic-srv6:SRV6_MY_SIDS": { | ||
| "SRV6_MY_SIDS_LIST": [ | ||
| { | ||
| "ip_address": "FCBB:BBBB:200001::", | ||
| "ip_prefix": "FCBB:BBBB:21::", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing the prefix len "/48"
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above |
||
| "locator": "MAIN", | ||
| "action": "uN" | ||
| }, | ||
| { | ||
| "ip_address": "FCBB:BBBB:20:F1::", | ||
| "ip_prefix": "FCBB:BBBB:20:F1::/64", | ||
| "locator": "MAIN", | ||
| "action": "uDT46" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "SRV6_MY_SID_UNMATCHED_IP_ADDR": { | ||
| "SRV6_MY_SID_UNMATCHED_IP_PREFIX": { | ||
| "sonic-srv6:sonic-srv6": { | ||
| "sonic-srv6:SRV6_MY_LOCATORS": { | ||
| "SRV6_MY_LOCATORS_LIST": [ | ||
|
|
@@ -144,12 +144,12 @@ | |
| "sonic-srv6:SRV6_MY_SIDS": { | ||
| "SRV6_MY_SIDS_LIST": [ | ||
| { | ||
| "ip_address": "FCBB:BBBB:21::", | ||
| "ip_prefix": "FCBB:BBBB:21::/48", | ||
| "locator": "MAIN", | ||
| "action": "uN" | ||
| }, | ||
| { | ||
| "ip_address": "FCBB:BBBB:20:F1::", | ||
| "ip_prefix": "FCBB:BBBB:20:F1::/64", | ||
| "locator": "MAIN", | ||
| "action": "uDT46" | ||
| } | ||
|
|
@@ -170,39 +170,12 @@ | |
| "sonic-srv6:SRV6_MY_SIDS": { | ||
| "SRV6_MY_SIDS_LIST": [ | ||
| { | ||
| "ip_address": "FCBB:BBBB:20::", | ||
| "ip_prefix": "FCBB:BBBB:20::/48", | ||
| "locator": "MAIN", | ||
| "action": "uA" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. action is "uN"
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above |
||
| }, | ||
| { | ||
| "ip_address": "FCBB:BBBB:20:F1::", | ||
| "locator": "MAIN", | ||
| "action": "uDT46" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "SRV6_MY_SID_DSCP_MODE_WITH_UN": { | ||
| "sonic-srv6:sonic-srv6": { | ||
| "sonic-srv6:SRV6_MY_LOCATORS": { | ||
| "SRV6_MY_LOCATORS_LIST": [ | ||
| { | ||
| "locator_name": "MAIN", | ||
| "prefix": "FCBB:BBBB:20::" | ||
| } | ||
| ] | ||
| }, | ||
| "sonic-srv6:SRV6_MY_SIDS": { | ||
| "SRV6_MY_SIDS_LIST": [ | ||
| { | ||
| "ip_address": "FCBB:BBBB:20::", | ||
| "locator": "MAIN", | ||
| "action": "uN", | ||
| "decap_dscp_mode": "uniform" | ||
| }, | ||
| { | ||
| "ip_address": "FCBB:BBBB:20:F1::", | ||
| "ip_prefix": "FCBB:BBBB:20:F1::/64", | ||
| "locator": "MAIN", | ||
| "action": "uDT46" | ||
| } | ||
|
|
||
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.
locator is "MAIN" not "None"
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.
these configurations are set to be erotic to test whether the YANG model can correctly identify the errors.
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.
got it