Commit a0e58e06 authored by Brenden Blanco's avatar Brenden Blanco

Merge pull request #129 from iovisor/weichunc_dev

distributed_bridge: wait for ns comes up before validating traffic
parents 6e645852 7b90b52a
......@@ -43,6 +43,10 @@ class TunnelSimulation(Simulation):
print("Validating connectivity")
for i in range(1, num_hosts):
for j in range(0, 2):
out = 1
while out:
out = call(["ip", "netns", "exec", "host%d" % i,
"ip", "addr", "show", "br%d" % j], stdout=null, stderr=null)
print("VNI%d between host0 and host%d" % (10000 + j, i))
call(["ip", "netns", "exec", "host%d" % i,
"ping", "99.1.%d.1" % j, "-c", "3", "-i", "0.2", "-q"])
......
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