def __init__(self, nodes):
for n in nodes:
self.nodes_rpc[str(n["id"])] = Server("http://{}:{}".format(n["address"], str(n["rpcPort"])))
for n in nodes:
self.nodes_rpc[str(n["id"])].clean_all_qdisc()
self.nodes_rpc[str(n["id"])].create_root_qdisc()
for n in nodes:
if not self.nodes_rpc[str(n["id"])].init_qdisc():
raise Exception("[{}] Error initializing qdiscs".format(NETEM_ERROR))
# modify connection from source to target using netem_command
评论列表
文章目录