X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=examples%2Fomf%2Ftesting%2Fnepi_omf5_nitos_ccnring.py;fp=examples%2Fomf%2Ftesting%2Fnepi_omf5_nitos_ccnring.py;h=d38ba6bfa81b3f84606c73985d2b011bf2bcf92d;hb=ee6a33278ae5fa8114618408b9d2cb14bc0c1585;hp=680b2a70d7ee5d0b6d225fa030ce6115b704377e;hpb=3028b4751619d996758ca9c68b791e9e0b1016dc;p=nepi.git diff --git a/examples/omf/testing/nepi_omf5_nitos_ccnring.py b/examples/omf/testing/nepi_omf5_nitos_ccnring.py index 680b2a70..d38ba6bf 100644 --- a/examples/omf/testing/nepi_omf5_nitos_ccnring.py +++ b/examples/omf/testing/nepi_omf5_nitos_ccnring.py @@ -255,17 +255,17 @@ if __name__ == '__main__': # Cleaning when the experiment stop ccndstops = [] - for i in range(len(all_hosts)): - ccndstop = add_app(ec, nodes[all_hosts[i]], "#ccndstop", "ccndstop", env, xmpp_slice, xmpp_host) + for host all_hosts: + ccndstop = add_app(ec, nodes[host], "#ccndstop", "ccndstop", env, xmpp_slice, xmpp_host) ccndstops.append(ccndstop) killall = add_app(ec, nodes[host6], "#kill", "killall sh", "", xmpp_slice, xmpp_host) # Condition to stop and clean the experiment apps = [] - for i in range(len(all_hosts)): - apps.append(ccnds[all_hosts[i]]) - apps.append(ccnrs[all_hosts[i]]) + for host in all_hosts: + apps.append(ccnds[host]) + apps.append(ccnrs[host]) apps += link apps.append(pub) apps.append(stream)