X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Femuvim%2Fexamples%2Fmonitoring_demo_topology_restapi.py;h=c3e4cd620325519613469412c1b6f1cf47872584;hb=b8f485969b2d808bb5b5a6d009058c6b2711dca0;hp=cf273ae1f136106d1c6f59ce4a9730fb33516625;hpb=1c621296c9a826159366fdaaa6d3d70bcc2767a0;p=osm%2Fvim-emu.git diff --git a/src/emuvim/examples/monitoring_demo_topology_restapi.py b/src/emuvim/examples/monitoring_demo_topology_restapi.py index cf273ae..c3e4cd6 100755 --- a/src/emuvim/examples/monitoring_demo_topology_restapi.py +++ b/src/emuvim/examples/monitoring_demo_topology_restapi.py @@ -42,6 +42,7 @@ def create_topology1(): instances aka. VNFs (represented by Docker containers), passing through different switches and datacenters of the emulated topology """ + # create monitoring api endpoint for backwards compatibility with zerorpc api mon_api = ZeroRpcApiEndpointDCNetwork("0.0.0.0", 5151) mon_api.connectDCNetwork(net) mon_api.start() @@ -89,7 +90,8 @@ def create_topology1(): zapi1.start() # create a new instance of a endpoint implementation - api1 = RestApiEndpoint("0.0.0.0", 5000) + # the restapi handles all compute, networking and monitoring commands in one api endpoint + api1 = RestApiEndpoint("0.0.0.0", 5001) # connect data centers to this endpoint api1.connectDatacenter(dc1) api1.connectDatacenter(dc2)