class SonataDummyGatekeeperEndpoint(object):
+ """
+ Creates and starts a REST API based on Flask in an
+ additional thread.
+
+ Can connect this API to data centers defined in an emulator
+ topology.
+ """
def __init__(self, listenip, port):
self.dcs = {}
logging.debug("Started API endpoint %s" % self)
def _api_server_thread(self):
- dgk.start_rest_api(self.ip, self.port)
+ dgk.start_rest_api(self.ip, self.port, self.dcs)