-
Notifications
You must be signed in to change notification settings - Fork 656
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
Refactor non-compliant/overlapping YANG definition for BGP MED #1165
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* (M) release/models/bgp/openconfig-bgp-policy.yang - Remove string type from bgp-set-med-type union - Add new bgp-set-med-action typedef to separate out action on MED values - Add new set-med-action leaf to be optionally utilized with set-med
/gcbrun |
Major YANG version changes in commit 333b8ad: |
/gcbrun |
This will be reviewed at the Aug 20, 2024 OC operators meeting |
dplore
reviewed
Aug 20, 2024
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
I am extending last call to Oct 10th 2024 so this can be brought up at the Oct 3rd community meeting. |
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
dplore
approved these changes
Oct 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
values
Change Scope
YANG 1.0 (RFC 6020) as well as YANG 1.1 (RFC 7950) specify that the legal
lexical representation for built-in integer types can be represented with an
optional sign.
https://www.rfc-editor.org/rfc/rfc6020.html#section-9.2.1
Example:
The current union as specified interleaves a built-in integer type with a
string pattern regex that just so happens to overlap with allowable characters
for the uint32 type.
Therefore a "+100" would be matched by the
uint32
and the "+" characterdropped. Since the integer is unsigned in this case, a "-100" would
fallthrough to the 2nd match.
Rather than encode the "action" and value into a string, this proposal suggests
separating out the action to a distinct optional node. It appears that this is
the only such usage where there is a string with a pattern statement that
overlaps that of another permissible type encoding when also used in a union
with that type.
Platform Implementations
This is a NBC however necessary to fix to remove ambiguity and improper handling