[Yang] Fix Yang model of BGP Allowed Prefix#20550
Merged
StormLiangMS merged 3 commits intosonic-net:masterfrom Nov 21, 2024
Merged
[Yang] Fix Yang model of BGP Allowed Prefix#20550StormLiangMS merged 3 commits intosonic-net:masterfrom
StormLiangMS merged 3 commits intosonic-net:masterfrom
Conversation
wen587
reviewed
Oct 23, 2024
| } | ||
|
|
||
| container sonic-bgp-allowed-prefix { | ||
| container BGP_ALLOWED_PREFIXES { |
Contributor
Author
|
Hi @bingwang-ms, can you please help backport 202405? Thanks. |
mssonicbld
pushed a commit
to mssonicbld/sonic-buildimage
that referenced
this pull request
Nov 21, 2024
Why I did it Bugfix for Yang model of BGP Allowed Prefix. Support optional NEIGHBOR_TYPE in key. Support optional le and ge in prefixes_v4/prefixes_v6 list (e.g., 10.20.30.0/24 le 30). Work item tracking Microsoft ADO (number only): 30001113 How I did it Updated sonic-bgp-allowed-prefix.yang. Define optional value NEIGHBOR_TYPE in key. Define type bgp-allowed-ipv4-prefix and bgp-allowed-ipv6-prefix to support the optional suffix in prefixes_v4/prefixes_v6 list. How to verify it Verified by UT:
Collaborator
|
Cherry-pick PR to 202405: #20887 |
mssonicbld
pushed a commit
that referenced
this pull request
Nov 22, 2024
Why I did it Bugfix for Yang model of BGP Allowed Prefix. Support optional NEIGHBOR_TYPE in key. Support optional le and ge in prefixes_v4/prefixes_v6 list (e.g., 10.20.30.0/24 le 30). Work item tracking Microsoft ADO (number only): 30001113 How I did it Updated sonic-bgp-allowed-prefix.yang. Define optional value NEIGHBOR_TYPE in key. Define type bgp-allowed-ipv4-prefix and bgp-allowed-ipv6-prefix to support the optional suffix in prefixes_v4/prefixes_v6 list. How to verify it Verified by UT:
VladimirKuk
pushed a commit
to Marvell-switching/sonic-buildimage
that referenced
this pull request
Jan 21, 2025
Why I did it Bugfix for Yang model of BGP Allowed Prefix. Support optional NEIGHBOR_TYPE in key. Support optional le and ge in prefixes_v4/prefixes_v6 list (e.g., 10.20.30.0/24 le 30). Work item tracking Microsoft ADO (number only): 30001113 How I did it Updated sonic-bgp-allowed-prefix.yang. Define optional value NEIGHBOR_TYPE in key. Define type bgp-allowed-ipv4-prefix and bgp-allowed-ipv6-prefix to support the optional suffix in prefixes_v4/prefixes_v6 list. How to verify it Verified by UT:
This file contains hidden or 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
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.
Why I did it
Bugfix for Yang model of BGP Allowed Prefix.
NEIGHBOR_TYPEin key.leandgein prefixes_v4/prefixes_v6 list (e.g.,10.20.30.0/24 le 30).Work item tracking
How I did it
Updated
sonic-bgp-allowed-prefix.yang.NEIGHBOR_TYPEin key.bgp-allowed-ipv4-prefixandbgp-allowed-ipv6-prefixto support the optional suffix in prefixes_v4/prefixes_v6 list.How to verify it
Verified by UT:
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)