Page MenuHomeVyOS Platform

Configure non-existig Ethernet interface gives Traceback error
Closed, ResolvedPublicBUG

Description

Add address to non-existent interface Traceback error

vyos@r14# run show int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface    IP Address         MAC                VRF        MTU  S/L    Description
-----------  -----------------  -----------------  -------  -----  -----  -------------
eth0         192.168.122.14/24  52:54:00:8d:67:6e  default   1500  u/u
eth1         10.0.0.1/30        52:54:00:f4:d5:cd  default   1500  u/u
eth2         -                  52:54:00:b5:3a:46  default   1500  u/u
eth3         10.0.3.1/30        52:54:00:6c:c4:3e  default   1500  u/u
lo           127.0.0.1/8        00:00:00:00:00:00  default  65536  u/u
             ::1/128
[edit]
vyos@r14# 
[edit]
vyos@r14# set interfaces ethernet eth777 address '192.0.2.77/24'
[edit]
vyos@r14# commit
[ interfaces ethernet eth777 ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/services/vyos-configd", line 146, in run_script
    script.verify(c)
  File "/usr/libexec/vyos/conf_mode/interfaces_ethernet.py", line 389, in verify
    ethtool = Ethtool(ethernet['ifname'])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/ethtool.py", line 72, in __init__
    raise ValueError(f'Interface "{ifname}" does not exist!')
ValueError: Interface "eth777" does not exist!

[[interfaces ethernet eth777]] failed
Commit failed
[edit]
vyos@r14# run show version 
Version:          VyOS 2026.01.01-0929-rolling

Details

Version
VyOS 2026.01.01-0929-rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav triaged this task as Normal priority.
c-po renamed this task from Add address to non-existig interface Traceback error to Configure non-existig Ethernet interface gives Traceback error.Sat, Jan 3, 4:59 PM
c-po changed the task status from Open to In progress.

Issue also exists in VyOS 1.4.4 but with a different error message:

VyOS had an issue completing a command.

We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):
- Contact us using the online help desk if you have a subscription:
  https://support.vyos.io/
- Make sure you are running the latest version of VyOS available at:
  https://vyos.net/get/
- Consult the community forum to see how to handle this issue:
  https://forum.vyos.io
- Join us on Slack where our users exchange help and advice:
  https://vyos.slack.com

When reporting problems, please include as much information as possible:
- do not obfuscate any data (feel free to contact us privately if your
  business policy requires it)
- and include all the information presented below

Report time:      2026-01-03 20:58:15
Image version:    VyOS 1.4.4
Release train:    sagitta

Built by:         autobuild@vyos.net
Built on:         Thu 18 Dec 2025 12:01 UTC
Build UUID:       0b88ed48-af2f-4f7a-b2ac-088b09338cd7
Build commit ID:  f2bd2fba602ba5

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  QEMU
Hardware model:   Standard PC (i440FX + PIIX, 1996)
Hardware S/N:
Hardware UUID:    421dcf87-ab7f-da7e-355d-046586b6e92b

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/interfaces_ethernet.py", line 464, in <module>
    verify(c)
  File "/usr/libexec/vyos/conf_mode/interfaces_ethernet.py", line 337, in verify
    verify_ethernet(ethernet)
  File "/usr/libexec/vyos/conf_mode/interfaces_ethernet.py", line 365, in verify_ethernet
    verify_mtu(ethernet)
  File "/usr/lib/python3/dist-packages/vyos/configverify.py", line 39, in verify_mtu
    tmp = Interface(config['ifname'])
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 333, in __init__
    raise Exception(f'interface "{ifname}" not found')
Exception: interface "eth5" not found

noteworthy:
cmd 'ip link add dev eth5 type ethernet'
returned (out):

returned (err):
Error: Unknown device type.

[[interfaces ethernet eth5]] failed
Commit failed
[edit]