From: Alina Quereilhac Date: Fri, 11 May 2012 12:41:02 +0000 (+0200) Subject: Improvement on examples/ccnx/planetlab_ccnx_multicast.py to use two ports per node... X-Git-Tag: nepi-3.0.0~163^2~4 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=094b4d45c87ca8d9ce7f1000b0eaf49edfc815a7;p=nepi.git Improvement on examples/ccnx/planetlab_ccnx_multicast.py to use two ports per node at most --- diff --git a/examples/ccnx/planetlab_ccnx_multicast.py b/examples/ccnx/planetlab_ccnx_multicast.py index cecb78f5..0327d083 100644 --- a/examples/ccnx/planetlab_ccnx_multicast.py +++ b/examples/ccnx/planetlab_ccnx_multicast.py @@ -164,7 +164,7 @@ def create_ed(hostnames, vsys_vnet, slicename, plc_host, pl_user, pl_pwd, pl_ssh if prev_hostname: ccn_routes[hostname].append((prev_hostname, mport)) ccn_routes[prev_hostname].append((hostname, mport)) - mport +=1 + mport = port if mport != port else port + 1 prev_hostname = hostname # Get the base network segment (slice vsys_vnet) to assign all the IP addresses