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

Restore NONE as an enum value for typedef community-type #1177

Merged
merged 8 commits into from
Sep 24, 2024

Conversation

dplore
Copy link
Member

@dplore dplore commented Sep 6, 2024

Proposed fix for #945

Change Scope

In the current OC models, there is ambiguity regarding how to use send-community-type to disable sending any communities at the bgp global, peer-group and neighbor levels. The OC model description says the lack of the send-community-type node means communities should not be sent. This is in conflict with the expected inheritance from global, peer-group and neighbor levels in BGP configuration. With inheritance, the lack of a node means to inherit the configuration from the next higher level.

It was proposed in #945 that an explicitly defined send-community-type as an empty list could be used to indicate no communities should be sent. But this is problematic for some encodings and likely toolchains because RFC7590 states that XML encoded yang simply omits empty lists (ref).

This proposal removes the deprecated status from the NONE value of the community-type enum.

@dplore dplore requested a review from a team as a code owner September 6, 2024 21:54
@OpenConfigBot
Copy link

OpenConfigBot commented Sep 6, 2024

No major YANG version changes in commit 0426df8

Copy link

@s19nal s19nal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed at OC operators meeting - removing a deprecated status from one enum in the leaf looks to be ok although it might be slightly contentious to call it non-breaking.
However re-instating the deprecated NONE enum solves the problem that was introduced by removing it in the first place, so I'm happy :)

@dplore dplore added the last-call PR that is in final review before merging. label Sep 10, 2024
@dplore
Copy link
Member Author

dplore commented Sep 10, 2024

Last call for Sep 20, 2024

@nokia1adam
Copy link
Contributor

@dplore, thanks for resolving this issue.

@dplore dplore merged commit 4513c14 into master Sep 24, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
last-call PR that is in final review before merging. non-breaking
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

How to disable sending BGP communities at group and neighbor level
5 participants