projects
/
osm
/
NBI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Methods for managing VIMs, SDNs
[osm/NBI.git]
/
osm_nbi
/
msgbase.py
diff --git
a/osm_nbi/msgbase.py
b/osm_nbi/msgbase.py
index
a105414
..
25e8c80
100644
(file)
--- a/
osm_nbi/msgbase.py
+++ b/
osm_nbi/msgbase.py
@@
-1,4
+1,5
@@
+import asyncio
from http import HTTPStatus
__author__ = "Alfonso Tierno <alfonso.tiernosepulveda@telefonica.com>"
from http import HTTPStatus
__author__ = "Alfonso Tierno <alfonso.tiernosepulveda@telefonica.com>"
@@
-30,12
+31,17
@@
class MsgBase(object):
def connect(self, config):
pass
def connect(self, config):
pass
- def
write(self, msg
):
+ def
disconnect(self
):
pass
pass
- def
read(self
):
+ def
write(self, topic, key, msg
):
pass
pass
- def
disconnect(self
):
+ def
read(self, topic
):
pass
pass
+ async def aiowrite(self, topic, key, msg, loop):
+ pass
+
+ async def aioread(self, topic, loop):
+ pass