projects
/
platform
/
upstream
/
bcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
634f4b0
)
Workaround for possible race in pyroute2.ipdb
author
Brenden Blanco
<bblanco@gmail.com>
Thu, 18 May 2017 16:57:42 +0000
(09:57 -0700)
committer
Brenden Blanco
<bblanco@gmail.com>
Thu, 18 May 2017 16:57:42 +0000
(09:57 -0700)
In simulation.py, add a call to initdb() to force-refresh the netlink
socket and the interface list.
Signed-off-by: Brenden Blanco <bblanco@gmail.com>
examples/networking/simulation.py
patch
|
blob
|
history
diff --git
a/examples/networking/simulation.py
b/examples/networking/simulation.py
index aa9888dfac7f1cb5f3d36d5fe9a92a0ccf1ca847..2c6a0f3d69807eae9ff3e358666a6f1bdee02fc3 100644
(file)
--- a/
examples/networking/simulation.py
+++ b/
examples/networking/simulation.py
@@
-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