summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/vyos/ifconfig.py')
-rw-r--r--python/vyos/ifconfig.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py
index b28e7af3d..f6b3cbb46 100644
--- a/python/vyos/ifconfig.py
+++ b/python/vyos/ifconfig.py
@@ -1679,12 +1679,14 @@ class GeneveIf(Interface):
def __init__(self, ifname, config=''):
if config:
self._ifname = ifname
-
if not os.path.exists('/sys/class/net/{}'.format(self._ifname)):
cmd = 'ip link add name {} type geneve id {} remote {}' \
.format(self._ifname, config['vni'], config['remote'])
self._cmd(cmd)
+ # interface is always A/D down. It needs to be enabled explicitly
+ self.set_state('down')
+
super().__init__(ifname, type='geneve')
@staticmethod