summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Mangin <thomas.mangin@exa.net.uk>2020-05-02 21:26:26 +0100
committerThomas Mangin <thomas.mangin@exa.net.uk>2020-05-02 21:26:26 +0100
commit87fc81773dea87338291ffd87f51c343a33ce0c8 (patch)
tree121458d6777d8fccec5c98e79f1dc546d2b18429
parent6b920f8a02b0e5bb54a1be6718d8d81ac91b7092 (diff)
downloadvyos-1x-87fc81773dea87338291ffd87f51c343a33ce0c8.tar.gz
vyos-1x-87fc81773dea87338291ffd87f51c343a33ce0c8.zip
interface: T2367: use self.ifname instead of self.config
-rw-r--r--python/vyos/ifconfig/interface.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py
index 1f932c884..de5ca369f 100644
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -723,4 +723,4 @@ class Interface(Control):
self.dhcp.v6.delete()
# flush all addresses
- self._cmd(f'ip addr flush dev "{self.config["ifname"]}"')
+ self._cmd(f'ip addr flush dev "{self.ifname}"')