-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[DPB] BGP_NEIGHBOR yang model causing DPB errors #7959
Comments
@robocoder99 @venkatmahalingam |
@robocoder99 |
@venkatmahalingam Please see my "steps to reproduce section" this includes all details to produce a minimal recreation of the bug. |
Created the PR to fix this issue. |
@alexrallen Can you please close this as the fix is merged? |
#6917 introduced a model for BGP_NEIGHBOR in Yang. However:
Defining Neighbor without VRF
This model expects the neighbors to be defined as
where default is the VRF name and does not support defining the neighbor without this. This is because the Yang model defines the vrf name as part of the key for BGP neighbor entries.
Steps to Reproduce
ztp disable -y
/usr/local/bin/sonic-cfggen -H -k [SKU] --write-to-db
config reload -y
Observed Results
Breakout fails with the following error....
Expected Results
Successful Breakout
Does not support fields in neighbor entry
This model also does not support any fields being in the neighbor entry. For example..
This will throw an error that the asn key is not matched. This functionality is implemented in this Yang model through the
uses
andgrouping
keywords. These do not appear to be functioning in the expected manner because if I copy the leafs manually into the container definitions then it correctly matches the fields.Steps to Reproduce
config reload -y
Observed Results
The breakout fails with the following error....
Expected Results
Successful breakout
The text was updated successfully, but these errors were encountered: