Use smaller delays for demo
authorpeusterm <manuel.peuster@uni-paderborn.de>
Tue, 6 Sep 2016 13:00:56 +0000 (15:00 +0200)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Tue, 6 Sep 2016 13:00:56 +0000 (15:00 +0200)
src/emuvim/examples/sonata_y1_demo_topology_1_w_ls_and_mon_and_sap.py
src/emuvim/examples/sonata_y1_demo_topology_1_w_ls_and_sap.py

index 0e076db..b38720e 100644 (file)
@@ -50,8 +50,8 @@ def create_topology1():
     dc1 = net.addDatacenter("dc1")
     dc2 = net.addDatacenter("dc2")
     s1 = net.addSwitch("s1")
-    net.addLink(dc1, s1, delay="10ms")
-    net.addLink(dc2, s1, delay="20ms")
+    net.addLink(dc1, s1, delay="3ms")
+    net.addLink(dc2, s1, delay="5ms")
 
     # add the command line interface endpoint to each DC (REST API)
     rapi1 = RestApiEndpoint("0.0.0.0", 5001)
index b13e05a..ffb1159 100644 (file)
@@ -46,12 +46,12 @@ logging.basicConfig(level=logging.INFO)
 
 def create_topology1():
     # create topology
-    net = DCNetwork(controller=RemoteController, monitor=False, enable_learning=True)
+    net = DCNetwork(controller=RemoteController, monitor=False, enable_learning=False)
     dc1 = net.addDatacenter("dc1")
     dc2 = net.addDatacenter("dc2")
     s1 = net.addSwitch("s1")
-    net.addLink(dc1, s1, delay="10ms")
-    net.addLink(dc2, s1, delay="20ms")
+    net.addLink(dc1, s1, delay="3ms")
+    net.addLink(dc2, s1, delay="5ms")
 
     # add the command line interface endpoint to each DC (REST API)
     rapi1 = RestApiEndpoint("0.0.0.0", 5001)