Page MenuHomeVyOS Platform

Error on boot when removing ethernet interface from VM
Closed, ResolvedPublicBUG

Description

Reported via slack

Traceback (most recent call last):

File "/usr/libexec/vyos/conf_mode/interfaces-ethernet.py", line 421, in <module>
  apply(c)
File "/usr/libexec/vyos/conf_mode/interfaces-ethernet.py", line 397, in apply
  e.del_vlan(vif)
File "/usr/lib/python3/dist-packages/vyos/ifconfig/vlan.py", line 134, in del_vlan
  VLANIf(vlan_ifname).remove()
File "/usr/lib/python3/dist-packages/vyos/ifconfig/vlan.py", line 68, in remove
  super().remove()
File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 228, in remove
  for addr in self.get_addr():
File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 513, in get_addr
  if AF_INET in ifaddresses(self.config['ifname']).keys():

ValueError: You must specify a valid interface name.

Details

Difficulty level
Unknown (require assessment)
Version
1.3
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)