Esempio n. 1
0
              "s54": 1,
              "s55": 1,
              "s56": 1,
              "s57": 0,
              "s58": 0,
              "s59": 1,
              "s60": 1,
              "s61": 0,
              "s62": 1,
              "s63": 0
             }

   print "Hosts : ", len(topo.hosts())
   n = len(topo.hosts())
   print "Switches : ", len(topo.switches())
   print "Links :", topo.links()

   cluster = maxinet.Cluster(minWorkers=2,maxWorkers=2)

   #exp = maxinet.Experiment(cluster, topo, nodemapping=mapping)
   exp = maxinet.Experiment(cluster, topo)
   exp.setup()


   #print exp.get_node("h1").cmd("ifconfig")  # call mininet cmd function of h1
   #print exp.get_node("h4").cmd("ifconfig")
   print "waiting 5 seconds for routing algorithms on the controller to converge"
   sleep(5)