Skip to content
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

Fix sonic-bgp-neighbor.yang to use backreference for vlan int and allow subint #21212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joolli
Copy link

@joolli joolli commented Dec 18, 2024

fixes #18965

Why I did it

I couldn't add subinterfaces as neighbors when using bgp-unnumbered (IPv6 link-local neighbors)

How to verify it

Use sudo config bgp-neighbor bgp-neighbor-list add and use a subinterface as an neighbor or a vlan SVI.

Tested branch (Please provide the tested image version)

  • [ x] 2024.05

Description for the changelog

Add a backreference to the VLAN yang for a unified validation and add subinterface validation to bgp-neighbor yang model

Link to config_db schema for YANG module changes

Not sure if it's applicable. Can't find a reference to bgp neighbor yang definitions for frr-mgmt-framework in sonic-yang-models/doc/Configuration.md.

@joolli joolli requested a review from qiluo-msft as a code owner December 18, 2024 17:34
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

linux-foundation-easycla bot commented Dec 18, 2024

CLA Signed


The committers listed above are authorized under a signed CLA.

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@joolli joolli force-pushed the bgp-neighbor_vlan_and_subint_fix branch from f2e543b to 8fa8f9d Compare December 18, 2024 17:47
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

…face validation instead of regex and add subinterface support.

Signed-off-by: Julius <[email protected]>
@joolli joolli force-pushed the bgp-neighbor_vlan_and_subint_fix branch from 8fa8f9d to 50e6784 Compare December 18, 2024 17:58
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@joolli
Copy link
Author

joolli commented Dec 27, 2024

I don't know how to resolve the ms_conflict check failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Yang model does not allow the use of subinterfaces for bgp neighbors
2 participants