Skip to content

[ENHANCEMENT] netlab status should display the IPv6 management address if it is enabled #3358

@moogzy

Description

@moogzy

Containerlab inspect shows both addresses

$ sudo clab inspect -t clab.yml
12:30:18 INFO Parsing & checking topology file=clab.yml
╭─────────────────────────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬─────────────┬──────────────────────╮
│                 Name                │                                                                                      Kind/Image                                                                                     │    State    │    IPv4/6 Address    │
├─────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────┼──────────────────────┤
│ clab-vjunos-edge-edge01_abc01       │ juniper_vjunosevolved                                                                                                                                                               │ running     │ 192.168.121.101      │
│                                     │ vjunos-evo/master:23.4R2-S2.1                                                                                                                                                       │ (unhealthy) │ 3fff:192:168:121::65 │
├─────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────┼──────────────────────┤

Netlab status does not, only pulls in the IPv4 address

$ netlab status
Lab default in /home/adrian/labs-netlab/labs/vjunos-edge
  status:      2026-05-07T12:00:43.727564+00:00: clab workload started
  topology:    topology.yml
  provider(s): clab

┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ node               ┃ device ┃ image                                                                                                                             ┃ mgmt IPv4       ┃ connection ┃ provider ┃ VM/container                        ┃ status                   ┃
┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ edge01_abc01       │ vptx   │ vjunos-evo/master:23.4R2-S2.1                                                                                                     │ 192.168.121.101 │ netconf    │ clab     │ clab-vjunos-edge-edge01_sjc01       │ Up 6 minutes (unhealthy) │
├────────────────────┼────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────────┼────────────┼──────────┼─────────────────────────────────────┼──────────────────────────┤

[WARNING] Lab is not in 'started' state, inspect details with 'netlab status --log'

Minor enhancement in the status.py code to add support for mgmt.ipv6 if it exists.

https://github.com/ipspace/netlab/blob/dev/netsim/cli/status.py#L169

Thoughts?

Happy to have a crack at this as time permits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions