'(id=input,ip=10.0.10.3/24),(id=output,ip=10.0.10.4/24)' for multiple interfaces.")
parser.add_argument(
"--endpoint", "-e", dest="endpoint",
- default="http://127.0.0.1:5000",
+ default="http://127.0.0.1:5001",
help="UUID of the plugin to be manipulated.")
def main(argv):
help="Data center to which the command should be applied.")
parser.add_argument(
"--endpoint", "-e", dest="endpoint",
- default="http://127.0.0.1:5000",
+ default="http://127.0.0.1:5001",
help="UUID of the plugin to be manipulated.")
help="Data center where the vnf is deployed")
parser.add_argument(
"--endpoint", "-e", dest="endpoint",
- default="http://127.0.0.1:5000",
+ default="http://127.0.0.1:5001",
help="UUID of the plugin to be manipulated.")
def main(argv):
help="cookie for this flow, as easy to use identifier (eg. per tenant/service)")
parser.add_argument(
"--endpoint", "-e", dest="endpoint",
- default="http://127.0.0.1:5000",
+ default="http://127.0.0.1:5001",
help="UUID of the plugin to be manipulated.")
def main(argv):
"""
# create a new instance of a endpoint implementation
zapi1 = ZeroRpcApiEndpoint("0.0.0.0", 4242)
- rapi1 = RestApiEndpoint("127.0.0.1", 5000)
+ rapi1 = RestApiEndpoint("127.0.0.1", 5001)
# connect data centers to this endpoint
zapi1.connectDatacenter(dc1)
zapi1.connectDatacenter(dc2)
zapi1.start()
# create a new instance of a endpoint implementation
- api1 = RestApiEndpoint("127.0.0.1", 5000)
+ api1 = RestApiEndpoint("127.0.0.1", 5001)
# connect data centers to this endpoint
api1.connectDatacenter(dc1)
api1.connectDatacenter(dc2)
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
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)
specific controller functionality.
"""
self.net = DCNetwork(controller=controller, **kwargs)
- self.api = RestApiEndpoint("127.0.0.1",5000)
+ self.api = RestApiEndpoint("127.0.0.1", 5001)
# add some switches
# start from s1 because ovs does not like to have dpid = 0
# and switch name-number is being used by mininet to set the dpid