summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Mangin <thomas.mangin@exa.net.uk>2020-04-14 09:46:46 +0100
committerThomas Mangin <thomas.mangin@exa.net.uk>2020-04-14 12:04:43 +0100
commite0aa8aa20b835f17a74e0cf2a0dc2ca6e7823a3c (patch)
tree8357fd78883ab114b4cdc019e7eeeb6920368d00 /src
parentfdfd050431f786f9c9b7bfdcb51b5e8aca3f79f5 (diff)
downloadvyos-1x-e0aa8aa20b835f17a74e0cf2a0dc2ca6e7823a3c.tar.gz
vyos-1x-e0aa8aa20b835f17a74e0cf2a0dc2ca6e7823a3c.zip
ifconfig: T2223: group all operational commands
All operational command are moved within an Operational class and an inherited on for wireguard.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/wireguard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/wireguard.py b/src/op_mode/wireguard.py
index 1b90f4fa7..297ba599d 100755
--- a/src/op_mode/wireguard.py
+++ b/src/op_mode/wireguard.py
@@ -148,7 +148,7 @@ if __name__ == '__main__':
list_key_dirs()
if args.showinterface:
intf = WireGuardIf(args.showinterface, create=False, debug=False)
- intf.op_show_interface()
+ print(intf.operational.show_interface())
if args.delkdir:
if args.location:
del_key_dir(args.location)