Page MenuHomeVyOS Platform

wireless: can't delete interface present in config but not present in system
In progress, NormalPublic


During testing I added a second wireless interface to the config with a different name but the same physical-device (phy) as an existing interface. The commit succeeded without errors but the 2nd interface wasn't added to the system. Then I tried to delete the 2nd interface but got an error:

vyos@rt-home# delete interfaces wireless wlan1 
vyos@rt-home# commit
[ interfaces wireless wlan1 ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/", line 1508, in <module>
  File "/usr/libexec/vyos/conf_mode/", line 1383, in apply
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 68, in remove
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 228, in remove
    for addr in self.get_addr():
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 513, in get_addr
    if AF_INET in ifaddresses(self.config['ifname']).keys():
ValueError: You must specify a valid interface name.

delete [ interfaces wireless wlan1 ] failed

Thus leaving me in a deadlocked state and I had to discard the config.

The reason I added the 2nd interface was trying to see if I could add a 2nd SSID aka virtual interface (iw phy phy1 interface add), but it seems that is not possible in VyOS.


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible

Event Timeline

jjakob created this task.Sun, Mar 22, 12:29 PM
jjakob created this object in space S1 VyOS Public.
c-po changed the task status from Open to In progress.Sun, Mar 22, 12:52 PM
c-po claimed this task.
c-po triaged this task as Normal priority.
pasik added a subscriber: pasik.Sun, Mar 22, 5:13 PM
c-po added a comment.Mon, Mar 23, 6:57 PM

Deletion should be possible with tomorrows rolling release.

Unfortunately spawning an AP with multiple SSIDs does not work with my Compex WLE900VX card. In 90% of the cases I see hostapd erorr message Failed to set beacon parameters