Skip to content

Fix: Skip 'unused link module attributes' check for VLAN links#3382

Merged
ipspace merged 1 commit into
devfrom
fix-vlan-warning
May 12, 2026
Merged

Fix: Skip 'unused link module attributes' check for VLAN links#3382
ipspace merged 1 commit into
devfrom
fix-vlan-warning

Conversation

@ipspace
Copy link
Copy Markdown
Owner

@ipspace ipspace commented May 12, 2026

Implements the easy part of #3381

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reduces confusing “unused link module attribute” warnings on VLAN-enabled links by skipping early link/module-usage checks on links that carry VLAN information, aligning behavior with how VLAN members are resolved later in the pipeline.

Changes:

  • Skip VRF “link uses vrf but no attached node uses vrf” validation on links that have a vlan attribute.
  • Refactor “extra module attributes on link” warning logic into check_extra_modules() and bypass it for VLAN links.
  • Update coverage expectations to reflect the removed warning for a VLAN scenario.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
tests/coverage/expected/rt-vlan-anycast.yml Removes expected _warning_extra_mod output for a VLAN-related link case.
netsim/modules/vrf.py Skips VRF link-module usage validation for VLAN links to avoid premature warnings.
netsim/modules/init.py Extracts extra-module detection into a helper and skips that check for VLAN links.

@ipspace ipspace merged commit 4a24f1e into dev May 12, 2026
17 checks passed
@ipspace ipspace deleted the fix-vlan-warning branch May 12, 2026 06:21
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.

2 participants