X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=examples%2Fopenvswitch%2Fovs_ping_3_switches.py;h=c97b3a77ead16f11c74cc3f672cbc2e3bd7f99db;hb=039fbd9629d7570d4c175a5448d24badcd0f3aba;hp=60efc350257c1cb9db6a7c47f7e4b145dbf5bbf5;hpb=52e9a80764b98226727f1362d7c1f6246c06f92e;p=nepi.git diff --git a/examples/openvswitch/ovs_ping_3_switches.py b/examples/openvswitch/ovs_ping_3_switches.py index 60efc350..c97b3a77 100644 --- a/examples/openvswitch/ovs_ping_3_switches.py +++ b/examples/openvswitch/ovs_ping_3_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 @@ -33,7 +32,7 @@ # $ PYTHONPATH=$PYTHONPATH:src/ python examples/openvswitch/ovs_ping_3_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 @@ -242,11 +241,9 @@ ec.wait_finished(apps.values()) # collect results for key, app in apps.iteritems(): stdout = ec.trace(app, "stdout") - print "***************************", key, "************************" - print stdout - print "\n" + print("***************************", key, "************************") + print(stdout) + print("\n") # Delete the overlay network ec.shutdown() - -