summaryrefslogtreecommitdiff
path: root/src/op_mode/wireguard.py
diff options
context:
space:
mode:
authorkroy <kroy@kroy.io>2019-10-27 10:39:03 -0500
committerkroy <kroy@kroy.io>2019-10-27 10:39:03 -0500
commit6564f5cef43f63cdcd70f05bca2222af48d63e59 (patch)
tree08e5faabb2dccadf610bb7f84b5a0a4e4d4ea4f7 /src/op_mode/wireguard.py
parent556b528ef9cc1eca9d142ebe1f8f88cd02d536da (diff)
downloadvyos-1x-6564f5cef43f63cdcd70f05bca2222af48d63e59.tar.gz
vyos-1x-6564f5cef43f63cdcd70f05bca2222af48d63e59.zip
T1759: Merging interface.py into ifconfig.py
Diffstat (limited to 'src/op_mode/wireguard.py')
-rwxr-xr-xsrc/op_mode/wireguard.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/op_mode/wireguard.py b/src/op_mode/wireguard.py
index 6860aa3ea..38c061cf4 100755
--- a/src/op_mode/wireguard.py
+++ b/src/op_mode/wireguard.py
@@ -24,7 +24,7 @@ import subprocess
import syslog as sl
import re
-from vyos.interface import Interface
+from vyos.ifconfig import WireGuardIf
from vyos import ConfigError
from vyos.config import Config
@@ -150,8 +150,8 @@ if __name__ == '__main__':
if args.listkdir:
list_key_dirs()
if args.showinterface:
- intf = Interface(args.showinterface)
- intf.print_interface()
+ intf = WireGuardIf(args.showinterface)
+ intf.op_show_interface()
if args.delkdir:
if args.location:
del_key_dir(args.location)