Skip to content

Commit

Permalink
Merge pull request iovisor#129 from iovisor/weichunc_dev
Browse files Browse the repository at this point in the history
distributed_bridge: wait for ns comes up before validating traffic
  • Loading branch information
drzaeus77 committed Aug 12, 2015
2 parents 6e64585 + 7b90b52 commit a0e58e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/distributed_bridge/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ def start(self):
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"])
Expand Down

0 comments on commit a0e58e0

Please sign in to comment.