HomeVyOS Platform

T6267: Check interface wireless module before apply config

This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

T6267: Check interface wireless module before apply config

Check if the wireless device/modem exists in the system and the
module ieee802111 was loaded
In cases where we do not have wireless devices, it prevents the
unexpected traceback

set interfaces wireless wlan0 address 192.0.2.5/32
commit

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/interfaces_wireless.py", line 269, in <modu>
    c = get_config()
        ^^^^^^^^^^^^
  File "/usr/libexec/vyos/conf_mode/interfaces_wireless.py", line 104, in get_cg
    tmp = find_other_stations(conf, base, wifi['ifname'])
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/libexec/vyos/conf_mode/interfaces_wireless.py", line 54, in find_os
    for phy in os.listdir('/sys/class/ieee80211'):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/ieee80211'

(cherry picked from commit 09c302d7e57a0fdb6c51ae8f61d5ad6371a30b67)

Details

Provenance
ViacheslavAuthored on Apr 26 2024, 2:50 PM
MergifyCommitted on Apr 30 2024, 6:22 PM
Parents
rVYOSONEX07826e81b35e: Merge pull request #3378 from vyos/mergify/bp/sagitta/pr-3374
Branches
Loading...
Tags
Loading...

Event Timeline