summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-01-12 17:54:15 +0000
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-01-12 18:58:07 +0000
commit21bdbd0b8136cfd7c94e45ed6218ab9f927370ad (patch)
tree09ba15ab7952d03559bfdd23b205cabb1d287679 /src/op_mode
parent72e30717dc2d4bdec118be227054c5b3db3ce8e1 (diff)
downloadvyos-1x-21bdbd0b8136cfd7c94e45ed6218ab9f927370ad.tar.gz
vyos-1x-21bdbd0b8136cfd7c94e45ed6218ab9f927370ad.zip
T5857: Fix op-mode show interfaces wireless info unconf message
When a router does not have wireless interfaces the proper unconfigured message must be exist (cherry picked from commit c97955b963ecc3da9638717485fe4d2c8599565c)
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/interfaces_wireless.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/op_mode/interfaces_wireless.py b/src/op_mode/interfaces_wireless.py
index dfe50e2cb..259fd3900 100755
--- a/src/op_mode/interfaces_wireless.py
+++ b/src/op_mode/interfaces_wireless.py
@@ -32,6 +32,7 @@ def _verify(func):
def _wrapper(*args, **kwargs):
config = ConfigTreeQuery()
if not config.exists(['interfaces', 'wireless']):
+ unconf_message = 'No Wireless interfaces configured'
raise vyos.opmode.UnconfiguredSubsystem(unconf_message)
return func(*args, **kwargs)
return _wrapper