From: peusterm Date: Tue, 6 Sep 2016 13:00:56 +0000 (+0200) Subject: Use smaller delays for demo X-Git-Tag: v3.1~58^2~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=561620852b6bc5a51965612b219c087f90cf5b61;p=osm%2Fvim-emu.git Use smaller delays for demo --- diff --git a/src/emuvim/examples/sonata_y1_demo_topology_1_w_ls_and_mon_and_sap.py b/src/emuvim/examples/sonata_y1_demo_topology_1_w_ls_and_mon_and_sap.py index 0e076db..b38720e 100644 --- a/src/emuvim/examples/sonata_y1_demo_topology_1_w_ls_and_mon_and_sap.py +++ b/src/emuvim/examples/sonata_y1_demo_topology_1_w_ls_and_mon_and_sap.py @@ -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) diff --git a/src/emuvim/examples/sonata_y1_demo_topology_1_w_ls_and_sap.py b/src/emuvim/examples/sonata_y1_demo_topology_1_w_ls_and_sap.py index b13e05a..ffb1159 100644 --- a/src/emuvim/examples/sonata_y1_demo_topology_1_w_ls_and_sap.py +++ b/src/emuvim/examples/sonata_y1_demo_topology_1_w_ls_and_sap.py @@ -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)