Skip to content
Snippets Groups Projects
Commit a3221919 authored by Faizan Wajid's avatar Faizan Wajid
Browse files

Added testbed and device info in start_testbed.py

parent f19aee23
No related branches found
No related tags found
No related merge requests found
......@@ -89,6 +89,7 @@ def connect_nodes(node1, node2):
# Configure the link for network emulation.
def enable_netem(ns, dev):
print "NAMESPACE: %s | DEVICE %s" % (ns,dev)
subprocess.call([
'sudo', 'ip', 'netns', 'exec', ns,
'tc', 'qdisc', 'add', 'dev', dev, 'root', 'handle', '1:0', 'netem'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment