X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Femuvim%2Fexamples%2Fsonata_y1_demo_topology_1.py;h=69e7d0be30a24dd036705a0fde649a3795ac0d8e;hb=2cb9e8fd0d8d4e5ff05fc99c882e8ad062f2ff96;hp=0236b8d676e1e5707b7b912d9d804910988109fc;hpb=5b23b663630e46460892b65cf8879537acb61c55;p=osm%2Fvim-emu.git diff --git a/src/emuvim/examples/sonata_y1_demo_topology_1.py b/src/emuvim/examples/sonata_y1_demo_topology_1.py index 0236b8d..69e7d0b 100755 --- a/src/emuvim/examples/sonata_y1_demo_topology_1.py +++ b/src/emuvim/examples/sonata_y1_demo_topology_1.py @@ -7,7 +7,7 @@ A simple topology with two PoPs for the y1 demo story board. import logging from mininet.log import setLogLevel from emuvim.dcemulator.net import DCNetwork -from emuvim.api.zerorpc.compute import ZeroRpcApiEndpoint +from emuvim.api.rest.rest_api_endpoint import RestApiEndpoint from emuvim.api.sonata import SonataDummyGatekeeperEndpoint from mininet.node import RemoteController @@ -23,12 +23,12 @@ def create_topology1(): net.addLink(dc1, s1, delay="10ms") net.addLink(dc2, s1, delay="20ms") - # add the command line interface endpoint to each DC - zapi1 = ZeroRpcApiEndpoint("0.0.0.0", 4242) - zapi1.connectDatacenter(dc1) - zapi1.connectDatacenter(dc2) + # add the command line interface endpoint to each DC (REST API) + rapi1 = RestApiEndpoint("0.0.0.0", 5001) + rapi1.connectDatacenter(dc1) + rapi1.connectDatacenter(dc2) # run API endpoint server (in another thread, don't block) - zapi1.start() + rapi1.start() # add the SONATA dummy gatekeeper to each DC sdkg1 = SonataDummyGatekeeperEndpoint("0.0.0.0", 5000)