Page MenuHomeVyOS Platform

Traceback on a non-existent interface.
Open, Requires assessmentPublicBUG

Description

If the network interface is not presented in the system, then too large code Traceback.
To reproduce.

vyos@1.3-netfl# set interfaces ethernet eth3 description test
[edit]
vyos@1.3-netfl# commit
[ interfaces ethernet eth3 ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/interfaces-ethernet.py", line 449, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/interfaces-ethernet.py", line 315, in apply
    e = EthernetIf(eth['intf'])
  File "/usr/lib/python3/dist-packages/vyos/ifconfig.py", line 1051, in __init__
    super().__init__(ifname)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig.py", line 941, in __init__
    super().__init__(ifname, type)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig.py", line 88, in __init__
    raise Exception('interface "{}" not found'.format(self._ifname))
Exception: interface "eth3" not found

[[interfaces ethernet eth3]] failed
Commit failed
[edit]
vyos@1.3-netfl#

It will be enough:

interface "eth3" not found

Details

Difficulty level
Normal (likely a few hours)
Version
VyOS 1.3-rolling-201912261106
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

pasik added a subscriber: pasik.Dec 27 2019, 9:55 AM