Skip to content

config: support link-local IPv6 on VLAN subinterfaces#4644

Open
sudharr86 wants to merge 2 commits into
sonic-net:masterfrom
sudharr86:link-local-vlan-subintf
Open

config: support link-local IPv6 on VLAN subinterfaces#4644
sudharr86 wants to merge 2 commits into
sonic-net:masterfrom
sudharr86:link-local-vlan-subintf

Conversation

@sudharr86

@sudharr86 sudharr86 commented Jun 25, 2026

Copy link
Copy Markdown

Summary

Add CLI support for IPv6 link-local-only mode on VLAN subinterfaces, including canonical and short subinterface names.

Why

The configuration and show commands should expose the same link-local-only behavior for VLAN subinterfaces that operators use on routed interfaces. The CLI also needs to validate subinterface names consistently across long and short forms.

Changes

  • Extend config interface ipv6 handling for VLAN subinterfaces.
  • Display link-local-only mode for VLAN subinterfaces in show ipv6 interfaces.
  • Add command tests for VLAN subinterface configuration and validation.

Related

Validation

  • git diff --check upstream/master..HEAD
  • PYTHONPYCACHEPREFIX=/private/tmp/codex-pycache-sonic-utils python3 -m py_compile config/main.py show/main.py tests/ipv6_link_local_test.py
  • Reviewed the diff for unintended references.

Route dotted Ethernet and PortChannel subinterface names to VLAN_SUB_INTERFACE for use-link-local-only enable and disable commands.

Include VLAN subinterfaces in show ipv6 link-local-mode and add CLI unit coverage.

Signed-off-by: Sudharsan Rajagopalan <sudharr@cisco.com>
Refactor IPv6 link-local interface validation to use the common interface-table classifier.

This allows short VLAN subinterface names such as Eth36.10 and Po0001.10 while preserving rejection of unsupported prefixes.

Signed-off-by: Sudharsan Rajagopalan <sudharr@cisco.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown
Collaborator

Hi, there are workflow run(s) waiting for approval, you may be first-time contributor. I will notify maintainers to help approve once PR is approved. Thanks!

---Powered by SONiC BuildBot

@sudharr86 sudharr86 marked this pull request as ready for review July 2, 2026 13:49
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