summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"])