Skip to content

Add multi-asic namespace support for IPv6 link-local commands#4289

Open
william8545 wants to merge 4 commits intosonic-net:masterfrom
william8545:multi-asic-ipv6-link-local
Open

Add multi-asic namespace support for IPv6 link-local commands#4289
william8545 wants to merge 4 commits intosonic-net:masterfrom
william8545:multi-asic-ipv6-link-local

Conversation

@william8545
Copy link

What I did

Added multi-ASIC namespace support for IPv6 link-local config and show commands. Previously these commands only worked against the default (single) ASIC namespace.

How I did it

  • Added -n/--namespace option to the config ipv6 command group so all subcommands (enable/disable link-local, per-interface use-link-local-only) operate on the correct namespace-specific config DB.
  • Added -n/--namespace option to show ipv6 link-local-mode so it can display interfaces from a single namespace or iterate over all namespaces.
  • Removed redundant ConfigDBConnector creation in subcommands — they now reuse the DB connection established by the parent group.
  • Added new multi-ASIC unit tests and updated existing single-ASIC tests accordingly.

How to verify it

  • On a multi-ASIC device:
    • show ipv6 link-local-mode — shows interfaces from all ASICs
    • show ipv6 link-local-mode -n asic0 — shows only asic0 interfaces
    • sudo config ipv6 -n asic0 enable link-local — enables link-local on asic0 only
    • sudo config ipv6 -n asic0 disable link-local — disables link-local on asic0 only

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

Signed-off-by: William Tsai <willtsai@nvidia.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: William Tsai <willtsai@nvidia.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: William Tsai <willtsai@nvidia.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@william8545 william8545 changed the title Add multi-ASIC namespace support for IPv6 link-local commands Add multi-asic namespace support for IPv6 link-local commands Feb 20, 2026
@william8545 william8545 marked this pull request as ready for review February 20, 2026 00:38
@william8545
Copy link
Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: William Tsai <willtsai@nvidia.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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