Page MenuHomeVyOS Platform

wireless: can't delete interface present in config but not present in system
Closed, ResolvedPublic


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:

[email protected]# delete interfaces wireless wlan1 
[email protected]# 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
Issue type
Bug (incorrect behavior)

Event Timeline

jjakob created this object in space S1 VyOS Public.
c-po changed the task status from Open to In progress.Mar 22 2020, 12:52 PM
c-po claimed this task.
c-po triaged this task as Normal priority.

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

erkin set Issue type to Bug (incorrect behavior).Aug 31 2021, 5:13 PM
erkin removed a subscriber: Active contributors.