Skip to content

Commit

Permalink
Merge pull request #174 from mpeuster/master
Browse files Browse the repository at this point in the history
Fix: We don't use learning switch = enabled in our demo topos
  • Loading branch information
mpeuster authored Sep 6, 2016
2 parents e9f4f35 + 09fee41 commit d2cd033
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@

def create_topology1():
# create topology
net = DCNetwork(controller=RemoteController, monitor=True, enable_learning=True)
net = DCNetwork(controller=RemoteController, monitor=True, 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)
Expand Down
6 changes: 3 additions & 3 deletions src/emuvim/examples/sonata_y1_demo_topology_1_w_ls_and_sap.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@

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)
Expand Down

0 comments on commit d2cd033

Please sign in to comment.