Commit bb1e9713 authored by Mark Schouten's avatar Mark Schouten

Wait for an fe80:: address on the interface we upped

parent b30fa8aa
......@@ -187,7 +187,10 @@ def Addvlan(vals):
parent = ip.interfaces[vals['parent']]
parent.up()
i = ip.create(kind='vlan', ifname=iface, link=parent, vlan_id=vals['vlanid'], reuse=True)
ip.commit()
Ifstate(iface, vals['adminstate'])
Ifmtu(iface, vals['mtu'])
Ifalias(iface, vals['description'])
try:
......@@ -260,6 +263,7 @@ def Ifstate(iface, state):
return
if state == 'UP':
i.up()
i.wait_ip('fe80::', mask=64, timeout=5)
if state == 'DOWN':
i.down()
ip.commit()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment