X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=emuvim%2Fexample_topology.py;fp=emuvim%2Fexample_topology.py;h=35c87af7c1f0304a166b129cf8b49e5463d9f41e;hb=58bd1f23e0d06257c9e5223156661d8f58d4f01e;hp=3c53c58b0cf9232138014ddab5461444dfb7de10;hpb=685e92b3abf0da22b4b6218b11167ac578cb5a3a;p=osm%2Fvim-emu.git diff --git a/emuvim/example_topology.py b/emuvim/example_topology.py index 3c53c58..35c87af 100755 --- a/emuvim/example_topology.py +++ b/emuvim/example_topology.py @@ -30,6 +30,13 @@ def create_topology1(): """ net = DCNetwork() + """ + 1b. add a monitoring agent to the DCNetwork + """ + 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 @@ -102,6 +109,8 @@ def create_topology1(): net.start() net.CLI() # when the user types exit in the CLI, we stop the emulator + # we need to explicitly stop the monitoring api, so the Ryu controller is also terminated + mon_api.stop() net.stop()