diff options
author | hagbard <vyosdev@derith.de> | 2020-03-16 08:31:36 -0700 |
---|---|---|
committer | hagbard <vyosdev@derith.de> | 2020-03-16 08:31:36 -0700 |
commit | 5cb0059353e94dc11aa116e4aa8ce0422c4f3534 (patch) | |
tree | 4d9919bd5ee3aa534fabc6edb79150e228e80311 /python/vyos/ifconfig | |
parent | f20ffaf1b493a42adafdc9db09c8c5af3bee1b14 (diff) | |
download | vyos-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
Diffstat (limited to 'python/vyos/ifconfig')
-rw-r--r-- | python/vyos/ifconfig/wireguard.py | 3 |
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"]) |