X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=examples%2Fopenvswitch%2Fovs_ping_3switches_line.py;h=0dd1783d00fb1831952eff8584e41c34082eb88c;hb=38575a0f27f26511965771dde8320060b10252dd;hp=ca1ebeed5a68c6d9717a1b6eb4ef3bf338542a29;hpb=7a40d6db82dc5fd7de026b39fdc2bc35887c4e07;p=nepi.git diff --git a/examples/openvswitch/ovs_ping_3switches_line.py b/examples/openvswitch/ovs_ping_3switches_line.py index ca1ebeed..0dd1783d 100644 --- a/examples/openvswitch/ovs_ping_3switches_line.py +++ b/examples/openvswitch/ovs_ping_3switches_line.py @@ -28,7 +28,6 @@ # Host1 Host3 Host2 - from nepi.execution.ec import ExperimentController import os, time @@ -60,10 +59,10 @@ def add_port(ec, port_name, ovs): ec.register_connection(port, ovs) return port -def add_tap(ec, ip4, prefix4, pointopoint, node): +def add_tap(ec, endpoint_ip, endpoint_prefix, pointopoint, node): tap = ec.register_resource("PlanetlabTap") - ec.set(tap, "ip4", ip4) - ec.set(tap, "prefix4", prefix4) + ec.set(tap, "endpoint_ip", endpoint_ip) + ec.set(tap, "endpoint_prefix", endpoint_prefix) ec.set(tap, "pointopoint", pointopoint) ec.set(tap, "up", True) ec.register_connection(tap, node) @@ -85,6 +84,7 @@ def add_app(ec, command, node): # Create the EC ec = ExperimentController(exp_id = "test-tr") +#XXX : Need to put 6 working nodes or to let Nepi find for you switch1 = "planetlab2.virtues.fi" switch2 = "planetlab2.upc.es" switch3 = "planetlab2.cs.aueb.gr" @@ -92,9 +92,12 @@ host1 = "planetlab2.ionio.gr" host2 = "iraplab2.iralab.uni-karlsruhe.de" host3 = "planetlab2.diku.dk" -ip_controller = "194.254.215.12" +ip_controller = "xxx.yyy.zzz.ttt" + +#XXX : Depends on the Vsys_tag of your slice network = "192.168.3.0" +#XXX : Name of your slice slicename = "inria_nepi" pl_user = os.environ.get("PL_USER") @@ -115,10 +118,8 @@ port4 = add_port(ec, "nepi_port4", ovs1) port7 = add_port(ec, "nepi_port7", ovs1) port2 = add_port(ec, "nepi_port2", ovs2) port5 = add_port(ec, "nepi_port5", ovs2) -#port8 = add_port(ec, "nepi_port8", ovs2) port3 = add_port(ec, "nepi_port3", ovs3) port6 = add_port(ec, "nepi_port6", ovs3) -#port9 = add_port(ec, "nepi_port9", ovs3) h1_node = add_node(ec, host1, slicename, pl_user, pl_password) h2_node = add_node(ec, host2, slicename, pl_user, pl_password)