X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=examples%2Fopenvswitch%2Fovs_ping_2_switches.py;h=a28bef20ae965d52a6a42d414afa66e1330ceb1e;hb=039fbd9629d7570d4c175a5448d24badcd0f3aba;hp=155fcbb781d254b569166504b98251c0cbaa85d2;hpb=7fed767f9f18ee81807950771145969cbb27b8a7;p=nepi.git diff --git a/examples/openvswitch/ovs_ping_2_switches.py b/examples/openvswitch/ovs_ping_2_switches.py index 155fcbb7..a28bef20 100644 --- a/examples/openvswitch/ovs_ping_2_switches.py +++ b/examples/openvswitch/ovs_ping_2_switches.py @@ -4,9 +4,8 @@ # Copyright (C) 2013 INRIA # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation; # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -34,6 +33,8 @@ # $ PYTHONPATH=$PYTHONPATH:src/ python examples/openvswitch/ovs_ping_2_switches.py -n "192.168.3.0/24" -C "1.1.1.1" -s -i /~/.ssh/id_rsa # +from __future__ import print_function + from nepi.execution.ec import ExperimentController import os @@ -79,7 +80,6 @@ def add_tap(ec, ip, prefix, pointopoint, node): ec.set(tap, "ip", ip) ec.set(tap, "prefix", prefix) ec.set(tap, "pointopoint", pointopoint) - ec.set(tap, "up", True) ec.register_connection(tap, node) return tap @@ -204,5 +204,4 @@ stdout = ec.trace(app, "stdout") # Delete the overlay network ec.shutdown() -print stdout - +print(stdout)