Skip to content

yanger: expand VLAN ranges from bridge global output#1517

Merged
mattiaswal merged 1 commit into
mainfrom
yanger-fix
May 26, 2026
Merged

yanger: expand VLAN ranges from bridge global output#1517
mattiaswal merged 1 commit into
mainfrom
yanger-fix

Conversation

@mattiaswal
Copy link
Copy Markdown
Contributor

bridge -j vlan global show can return VLAN ranges as {"vlan": 1, "vlanEnd": 3} instead of individual entries. The vlans dict was only keyed on the start value, causing port VLANs 2 and 3 to be reported as "Unexpected".

Also fix typo in error message (brpvlans -> brpvlan).

Description

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

bridge -j vlan global show can return VLAN ranges as
{"vlan": 1, "vlanEnd": 3} instead of individual entries.
The vlans dict was only keyed on the start value, causing
port VLANs 2 and 3 to be reported as "Unexpected".

Also fix typo in error message (brpvlans -> brpvlan).
@mattiaswal mattiaswal requested a review from troglobit May 26, 2026 15:20
Copy link
Copy Markdown
Contributor

@wkz wkz left a comment

Choose a reason for hiding this comment

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

The laundry room strikes again! 😆

@mattiaswal mattiaswal merged commit f7236fd into main May 26, 2026
9 checks passed
@mattiaswal mattiaswal deleted the yanger-fix branch May 26, 2026 20:21
Copy link
Copy Markdown
Contributor

@troglobit troglobit left a comment

Choose a reason for hiding this comment

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

Awesome work, and I'm not saying this enough, you're probably doing more for Infix than anyone else of the coreteam atm. Your continued work is not going unnoticed, my friend! ❤️

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.

3 participants