From c97955b963ecc3da9638717485fe4d2c8599565c Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Fri, 12 Jan 2024 17:54:15 +0000 Subject: 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 --- src/op_mode/interfaces_wireless.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 -- cgit v1.2.3