diff options
author | Christian Breunig <christian@breunig.cc> | 2024-01-12 20:20:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-12 20:20:47 +0100 |
commit | 87cf581bff3c10a0364af6143fbb7c5f41edf166 (patch) | |
tree | 09ba15ab7952d03559bfdd23b205cabb1d287679 | |
parent | 72e30717dc2d4bdec118be227054c5b3db3ce8e1 (diff) | |
parent | 21bdbd0b8136cfd7c94e45ed6218ab9f927370ad (diff) | |
download | vyos-1x-87cf581bff3c10a0364af6143fbb7c5f41edf166.tar.gz vyos-1x-87cf581bff3c10a0364af6143fbb7c5f41edf166.zip |
Merge pull request #2813 from vyos/mergify/bp/sagitta/pr-2812
T5857: Fix op-mode show interfaces wireless info unconf message (backport #2812)
-rwxr-xr-x | src/op_mode/interfaces_wireless.py | 1 |
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 |