From 561620852b6bc5a51965612b219c087f90cf5b61 Mon Sep 17 00:00:00 2001 From: peusterm Date: Tue, 6 Sep 2016 15:00:56 +0200 Subject: [PATCH] Use smaller delays for demo --- .../sonata_y1_demo_topology_1_w_ls_and_mon_and_sap.py | 4 ++-- .../examples/sonata_y1_demo_topology_1_w_ls_and_sap.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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) -- 2.25.1