-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[sonic-cfggen]: Add bgp asn for yang validation #9640
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
Conversation
Signed-off-by: Gang Lv [email protected]
My understanding of currently SONiC behaviors:
So right now, we need to fix sonic-device_metadata.yang to support above behaviors. In future, ideally we need to improve the first 2 cases, let /etc/frr/bgpd.conf handles them gracefully. |
<a:ASN>65100</a:ASN> | ||
<a:Hostname>linecard-1</a:Hostname> | ||
<a:Peers> | ||
<BGPPeer> |
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.
do you need all these peers or we can just add asn and that is enough?
Signed-off-by: Gang Lv [email protected]
Why I did it Config db schema generated by minigraph can’t pass yang validation, bgp_asn must not be None. How I did it Update sampe-voq-graph.xml to add bgp_asn. How to verify it Build sonic-config-engine. Run command 'sonic-cfggen -m tests/sample-voq-graph.xml -p tests/voq-sample-port-config.ini --print-data', and check bgp_asn. Signed-off-by: Gang Lv [email protected]
…)" This reverts commit c11ab02.
Signed-off-by: Gang Lv [email protected]
Why I did it
Config db schema generated by minigraph can’t pass yang validation, bgp_asn must not be None.
How I did it
Update sampe-voq-graph.xml to add bgp_asn.
How to verify it
Build sonic-config-engine.
Run command 'sonic-cfggen -m tests/sample-voq-graph.xml -p tests/voq-sample-port-config.ini --print-data', and check bgp_asn.
Which release branch to backport (provide reason below if selected)
Description for the changelog
Fix #9576
A picture of a cute animal (not mandatory but encouraged)