Skip to content

VyoS interfaces and health #3068

@other213

Description

@other213

Hello,

It is not possible to use interfaces ethX where X>9

2026-02-21 10:32:29.770 [info] 10:32:29 INFO Containerlab started version=0.73.0
2026-02-21 10:32:29.786 [info] 10:32:29 INFO Parsing & checking topology file=vyos-vxlan-full.clab.yml
2026-02-21 10:32:29.796 [info] ERROR
2026-02-21 10:32:29.796 [info] Vyos node "CORE-99" has an interface named "eth11" which doesn't match the required pattern. Interfaces may only be
2026-02-21 10:32:29.796 [info] named ethX where X is any number greater than 0.

Is it possible to change checks in nodes/vyosnetworks_vyos/vyos.go
To this:

func (n *vyos) CheckInterfaceName() error {
// allow eth and et interfaces
// https://regex101.com/r/umQW5Z/2
ifRe := regexp.MustCompile(eth([1-9][0-9]+|[1-9])$)

Also, after container start, it will show status as unhealthy.
That is because it cant start tty0 console:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b87520a66cdc clab/vyos:2026.02 "/sbin/init" 43 minutes ago Up 43 minutes (unhealthy) clab-vyos-int-check-vyos1

admin@vyos1:~$ systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION

Is it possible to change default config in nodes/vyosnetworks_vyos/vyos.config.boot
By removing this part:

system {
console {
device ttyS0 {
speed "115200"
}
}

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions