From 5921dc3911c8e542b00599b51cb63eec2a233004 Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Sat, 28 Mar 2020 15:51:18 +0000 Subject: ifconfig: T2057: fix import for run show interfaces wireguard when ifconfig.py was broken down in multiple files an import was missed. This fixes this import --- python/vyos/ifconfig/wireguard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/vyos/ifconfig') 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() -- cgit v1.2.3