Commit 97a0cace authored by Brenden Blanco's avatar Brenden Blanco

Workaround for possible race in pyroute2.ipdb

In simulation.py, add a call to initdb() to force-refresh the netlink
socket and the interface list.
Signed-off-by: default avatarBrenden Blanco <bblanco@gmail.com>
parent 634f4b0a
......@@ -66,6 +66,7 @@ class Simulation(object):
if out_ifc: out_ifc.up().commit()
ns_ipdb.interfaces.lo.up().commit()
ns_ipdb.initdb()
in_ifc = ns_ipdb.interfaces[in_ifname]
with in_ifc as v:
v.ifname = ns_ifc
......
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