projects
/
osm
/
vim-emu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: I somehow messed up some commits by clicking the "revert" button on the github...
[osm/vim-emu.git]
/
src
/
emuvim
/
api
/
sonata
/
__init__.py
diff --git
a/src/emuvim/api/sonata/__init__.py
b/src/emuvim/api/sonata/__init__.py
index
200337a
..
541ba67
100644
(file)
--- a/
src/emuvim/api/sonata/__init__.py
+++ b/
src/emuvim/api/sonata/__init__.py
@@
-11,6
+11,13
@@
import dummygatekeeper as dgk
class SonataDummyGatekeeperEndpoint(object):
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 = {}
def __init__(self, listenip, port):
self.dcs = {}
@@
-33,4
+40,4
@@
class SonataDummyGatekeeperEndpoint(object):
logging.debug("Started API endpoint %s" % self)
def _api_server_thread(self):
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
)