diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-04-26 14:50:22 +0000 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-04-30 18:22:45 +0000 |
commit | 626b3238051143874cbf64f55c8d4ca4993da399 (patch) | |
tree | 60d8566af6d1e7206408b0cce386a67b85c7282e /data/templates/frr/rip_ripng.frr.j2 | |
parent | 07826e81b35eb6f94aec37bcf71b64a80ad228de (diff) | |
download | vyos-1x-626b3238051143874cbf64f55c8d4ca4993da399.tar.gz vyos-1x-626b3238051143874cbf64f55c8d4ca4993da399.zip |
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)
Diffstat (limited to 'data/templates/frr/rip_ripng.frr.j2')
0 files changed, 0 insertions, 0 deletions