summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2020-03-16 08:31:36 -0700
committerhagbard <vyosdev@derith.de>2020-03-16 08:31:36 -0700
commit5cb0059353e94dc11aa116e4aa8ce0422c4f3534 (patch)
tree4d9919bd5ee3aa534fabc6edb79150e228e80311
parentf20ffaf1b493a42adafdc9db09c8c5af3bee1b14 (diff)
downloadvyos-1x-5cb0059353e94dc11aa116e4aa8ce0422c4f3534.tar.gz
vyos-1x-5cb0059353e94dc11aa116e4aa8ce0422c4f3534.zip
T2125: show interfaces wireguard wg0 error
- That should probably move to it's own op command library as it is the onlt function print out specific information
-rw-r--r--python/vyos/ifconfig/wireguard.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/wireguard.py b/python/vyos/ifconfig/wireguard.py
index 2926e72e1..411c3e146 100644
--- a/python/vyos/ifconfig/wireguard.py
+++ b/python/vyos/ifconfig/wireguard.py
@@ -16,6 +16,7 @@
import os
+import vyos
from vyos.ifconfig.interface import Interface
class WireGuardIf(Interface):
@@ -101,7 +102,7 @@ class WireGuardIf(Interface):
wgdump = vyos.interfaces.wireguard_dump().get(
self.config['ifname'], None)
- c = Config()
+ c = vyos.config.Config()
c.set_level(["interfaces", "wireguard", self.config['ifname']])
description = c.return_effective_value(["description"])
ips = c.return_effective_values(["address"])