summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-12 19:57:31 +0100
committerGitHub <noreply@github.com>2024-01-12 19:57:31 +0100
commit9c3129ec3720281fd2ad4d6ad6754bcfb19255fc (patch)
tree6f068782d1572215e0a746766f005e3be0fdeb2f
parent4c29922cc0baa9c127391b58e82b76f69e1e2dce (diff)
parentc97955b963ecc3da9638717485fe4d2c8599565c (diff)
downloadvyos-1x-9c3129ec3720281fd2ad4d6ad6754bcfb19255fc.tar.gz
vyos-1x-9c3129ec3720281fd2ad4d6ad6754bcfb19255fc.zip
Merge pull request #2812 from sever-sever/T5857
T5857: Fix op-mode show interfaces wireless info unconf message
-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