-
Notifications
You must be signed in to change notification settings - Fork 704
Add leaves for common org-defined TLVs to LLDP neighbor state #1478
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
Open
yogeshg-arista
wants to merge
10
commits into
openconfig:master
Choose a base branch
from
yogeshg-arista:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+74
−1
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1f2a84f
Add leaves for common org defined TLVs to LLDP model
yogeshg-arista 2053cff
Add leaves for common org defined TLVs to LLDP model
yogeshg-arista db884d6
Merge branch 'master' of github.com:yogeshg-arista/public
yogeshg-arista 1e33506
Merge branch 'openconfig:master' into master
yogeshg-arista 2a4764a
Address review: use uint16 for port-vlan-id, split link-aggregation i…
yogeshg-arista ebc906f
Remove extra newline.
yogeshg-arista 390598a
Merge branch 'master' into master
dplore cdbef70
Merge branch 'master' into master
yogeshg-arista 69ac85c
Wrap link-aggregation leaves in container, fix whitespace
yogeshg-arista 046af94
Address comments in PR 1478
yogeshg-arista File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'd say we're at the point where there should be a proper reusable typedef for this - the closest current one sits in
openconfig-vlan-typesbut restricts to1..4094- maybe something directly inopenconfig-typesor adjustment within that model is warrantedThere 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.
Thanks for the suggestion @earies. We see two options here:
Option 1: New typedef (e.g. vlan-id-or-none) in openconfig-vlan-types
A new typedef with range 0..4094 that explicitly documents the semantics of 0 (the system either does not know the PVID or does not support Port-based VLAN operation). This keeps the existing vlan-id (range 1..4094) untouched, so no risk to current consumers. The downside is introducing a second VLAN ID typedef that is very similar to the existing one.
Option 2: Widen existing vlan-id typedef from 1..4094 to 0..4094
One typedef covers both cases. But this changes the contract for all existing users of vlan-id across OpenConfig models. Config leaves that use this typedef would suddenly accept 0, which may not be meaningful in those contexts, and implementations might mishandle the value 0.
Given the risks of Option 2, we lean toward Option 1 but would appreciate the community's input. Also open to keeping the inline uint16 { range "0..4094"; } as-is if a new typedef isn't warranted for a single use.
@dplore @earies @rgwilton and the community, please let us know your thoughts on this.