nor the names of its contributors may be used to endorse or promote
products derived from this software without specific prior written
permission.
nor the names of its contributors may be used to endorse or promote
products derived from this software without specific prior written
permission.
GracefulKiller(self)
# create topology
self.net = DCNetwork(controller=RemoteController, monitor=False, enable_learning=False)
self.dc = self.net.addDatacenter("dc1")
# add the command line interface endpoint to each DC (REST API)
GracefulKiller(self)
# create topology
self.net = DCNetwork(controller=RemoteController, monitor=False, enable_learning=False)
self.dc = self.net.addDatacenter("dc1")
# add the command line interface endpoint to each DC (REST API)
self.rapi1.connectDCNetwork(self.net)
self.rapi1.connectDatacenter(self.dc)
# run API endpoint server (in another thread, don't block)
self.rapi1.start()
# add the SONATA dummy gatekeeper to each DC
self.rapi1.connectDCNetwork(self.net)
self.rapi1.connectDatacenter(self.dc)
# run API endpoint server (in another thread, don't block)
self.rapi1.start()
# add the SONATA dummy gatekeeper to each DC
self.sdkg1.connectDatacenter(self.dc)
# run the dummy gatekeeper (in another thread, don't block)
self.sdkg1.start()
self.sdkg1.connectDatacenter(self.dc)
# run the dummy gatekeeper (in another thread, don't block)
self.sdkg1.start()
- parser.add_argument('--time', '-t', metavar='seconds', type=float, help='a time limit', default=-1, required=False, dest='time')
+ parser.add_argument('--port', '-p', type=int, help='the port for the REST interface', default=5000, required=False, dest='port')