X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Femuvim%2Fexamples%2Fmonitoring_demo_topology.py;h=0650be463498ed931d1186164917fb9c64b2c68c;hb=73efd195b7d0876b76af6caa7ba27fa5bb43fcb2;hp=9737609f5a48b26d7383ff7649bbc87c30998fa4;hpb=461941c38b3981b78fa9238bc5b4282b08c7bac3;p=osm%2Fvim-emu.git diff --git a/src/emuvim/examples/monitoring_demo_topology.py b/src/emuvim/examples/monitoring_demo_topology.py index 9737609..0650be4 100755 --- a/src/emuvim/examples/monitoring_demo_topology.py +++ b/src/emuvim/examples/monitoring_demo_topology.py @@ -29,14 +29,19 @@ def create_topology1(): """ 1. Create a data center network object (DCNetwork) with monitoring enabled """ - net = DCNetwork(monitor=True) + net = DCNetwork(monitor=True, enable_learning=False) """ - 1b. add a monitoring agent to the DCNetwork + 1b. Add endpoint APIs for the whole DCNetwork, + to access and control the networking from outside. + e.g., to setup forwarding paths between compute + instances aka. VNFs (represented by Docker containers), passing through + different switches and datacenters of the emulated topology """ mon_api = ZeroRpcApiEndpointDCNetwork("0.0.0.0", 5151) mon_api.connectDCNetwork(net) mon_api.start() + """ 2. Add (logical) data centers to the topology (each data center is one "bigswitch" in our simplified @@ -53,15 +58,17 @@ def create_topology1(): 3. You can add additional SDN switches for data center interconnections to the network. """ - #s1 = net.addSwitch("s1") + s1 = net.addSwitch("s1") """ 4. Add links between your data centers and additional switches to define you topology. These links can use Mininet's features to limit bw, add delay or jitter. """ - net.addLink(dc1, dc2, delay="10ms") + #net.addLink(dc1, dc2, delay="10ms") #net.addLink(dc1, dc2) + net.addLink(dc1, s1) + net.addLink(s1, dc2) #net.addLink("datacenter1", s1, delay="20ms") #net.addLink(s1, dc3) #net.addLink(s1, "datacenter4")