summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-28 16:55:07 +0100
committerGitHub <noreply@github.com>2020-03-28 16:55:07 +0100
commit458ccfc2f0fe46d399d2412af60d8ade26b57f65 (patch)
tree458e1ffbf3e65412c73c392b9ed6a20ab18206c0 /python
parentb53d0e10d0fc7ed9d18833008da1d4a1d2520a78 (diff)
parent5921dc3911c8e542b00599b51cb63eec2a233004 (diff)
downloadvyos-1x-458ccfc2f0fe46d399d2412af60d8ade26b57f65.tar.gz
vyos-1x-458ccfc2f0fe46d399d2412af60d8ade26b57f65.zip
Merge pull request #280 from thomas-mangin/T2057-show-wg
ifconfig: T2057: fix import for run show interfaces wireguard
Diffstat (limited to 'python')
-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 8cf1ff58c..7f123f9b4 100644
--- a/python/vyos/ifconfig/wireguard.py
+++ b/python/vyos/ifconfig/wireguard.py
@@ -18,6 +18,7 @@ import os
import vyos
from vyos.ifconfig.interface import Interface
+from vyos.interfaces import wireguard_dump
from datetime import timedelta
import time
from hurry.filesize import size,alternative
@@ -107,7 +108,7 @@ class WireGuardIf(Interface):
return self._cmd(cmd)
def op_show_interface(self):
- wgdump = vyos.interfaces.wireguard_dump().get(
+ wgdump = wireguard_dump().get(
self.config['ifname'], None)
c = vyos.config.Config()