X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=examples%2Flinux%2Fccn%2Fccncat_extended_ring_topo.py;h=af823a2674d59f9cff899d2df209e1233708e470;hb=bac63fdc5983e2ade1902f711c1e7899d82ca4ae;hp=21815634219dbcfe76a9f61ebb529298541d45c7;hpb=46da4690c5120b820385fd47b7fbf995c1bff2a0;p=nepi.git diff --git a/examples/linux/ccn/ccncat_extended_ring_topo.py b/examples/linux/ccn/ccncat_extended_ring_topo.py old mode 100755 new mode 100644 index 21815634..af823a26 --- a/examples/linux/ccn/ccncat_extended_ring_topo.py +++ b/examples/linux/ccn/ccncat_extended_ring_topo.py @@ -39,8 +39,7 @@ # from nepi.execution.ec import ExperimentController, ECState -from nepi.execution.resource import ResourceState, ResourceAction, \ - populate_factory +from nepi.execution.resource import ResourceState, ResourceAction from nepi.execution.trace import TraceAttr import subprocess @@ -93,10 +92,9 @@ def add_stream(ec, ccnd, content_name): return app -def add_collector(ec, trace_name, store_dir): +def add_collector(ec, trace_name): collector = ec.register_resource("Collector") ec.set(collector, "traceName", trace_name) - ec.set(collector, "storeDir", store_dir) return collector @@ -137,28 +135,25 @@ if __name__ == '__main__': ( pl_user, movie, exp_id, pl_ssh_key, results_dir ) = get_options() - # Search for available RMs - populate_factory() - - ec = ExperimentController(exp_id = exp_id) - - # hosts in Europe - #host1 = "planetlab2.u-strasbg.fr" - #host2 = "planet1.servers.ua.pt" - #host3 = "planetlab1.cs.uoi.gr" - #host4 = "planetlab1.aston.ac.uk" - #host5 = "planetlab2.willab.fi" - #host6 = "planetlab-1.fokus.fraunhofer.de" - - # host in the US - host1 = "planetlab4.wail.wisc.edu" - host2 = "planetlab2.cs.columbia.edu" - host3 = "ricepl-2.cs.rice.edu" - host4 = "node1.planetlab.albany.edu" - host5 = "earth.cs.brown.edu" - host6 = "planetlab2.engr.uconn.edu" - - # describe nodes in the central ring + ec = ExperimentController(exp_id = exp_id, local_dir = results_dir) + + # hosts in the US + #host1 = "planetlab4.wail.wisc.edu" + #host2 = "planetlab2.cs.columbia.edu" + #host3 = "ricepl-2.cs.rice.edu" + #host4 = "node1.planetlab.albany.edu" + #host5 = "earth.cs.brown.edu" + #host6 = "planetlab2.engr.uconn.edu" + + # hosts in EU + host1 = "planetlab2.fct.ualg.pt" + host2 = "planet2.unipr.it" + host3 = "planetlab1.aston.ac.uk" + host4 = "itchy.comlab.bth.se" + host5 = "rochefort.infonet.fundp.ac.be" + host6 = "planetlab1.u-strasbg.fr" + + # describe nodes in the central ring ring_hosts = [host1, host2, host3, host4] ccnds = dict() @@ -216,9 +211,9 @@ if __name__ == '__main__': app, ResourceState.STARTED, time = "10s") ec.register_condition(l5d, ResourceAction.STOP, app, ResourceState.STARTED, time = "10s") - + # Register a collector to automatically collect traces - collector = add_collector(ec, "stderr", results_dir) + collector = add_collector(ec, "stderr") for ccnd in ccnds.values(): ec.register_connection(collector, ccnd)