sonic-net / sonic-buildimage

Scripts which perform an installable binary image build for SONiC
Other
741 stars 1.43k forks source link

[action] [PR:20550] [Yang] Fix Yang model of BGP Allowed Prefix (#20550) #20887

Closed mssonicbld closed 6 days ago

mssonicbld commented 6 days ago

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:

mssonicbld commented 6 days ago

Original PR: https://github.com/sonic-net/sonic-buildimage/pull/20550