projects
/
osm
/
NBI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Bug 2229 Set fixed IP address for VDU through VNFD and the instantiation params
[osm/NBI.git]
/
osm_nbi
/
subscriptions.py
diff --git
a/osm_nbi/subscriptions.py
b/osm_nbi/subscriptions.py
index
1f172dd
..
b178e5b
100644
(file)
--- a/
osm_nbi/subscriptions.py
+++ b/
osm_nbi/subscriptions.py
@@
-187,7
+187,6
@@
class SubscriptionThread(threading.Thread):
self.logger.debug("Starting")
while not self.to_terminate:
try:
self.logger.debug("Starting")
while not self.to_terminate:
try:
-
self.loop.run_until_complete(
asyncio.ensure_future(self.start_kafka(), loop=self.loop)
)
self.loop.run_until_complete(
asyncio.ensure_future(self.start_kafka(), loop=self.loop)
)
@@
-284,24
+283,22
@@
class SubscriptionThread(threading.Thread):
else:
op_state = params["operationState"]
event_details = {
else:
op_state = params["operationState"]
event_details = {
-
"topic": topic,
-
"command": command.upper(),
-
"params": params,
-
}
+ "topic": topic,
+ "command": command.upper(),
+ "params": params,
+ }
subscribers = self.vnflcm.get_subscribers(
subscribers = self.vnflcm.get_subscribers(
-
vnfd_id,
-
vnf_instance_id,
-
command.upper(),
-
op_state,
- event_details
-
)
+ vnfd_id,
+ vnf_instance_id,
+ command.upper(),
+ op_state,
+ event_details,
+ )
if subscribers:
asyncio.ensure_future(
if subscribers:
asyncio.ensure_future(
- self.vnflcm.send_notifications(
- subscribers, loop=self.loop
- ),
- loop=self.loop
- )
+ self.vnflcm.send_notifications(subscribers, loop=self.loop),
+ loop=self.loop,
+ )
elif topic == "nsi":
if command == "terminated" and params["operationState"] in (
"COMPLETED",
elif topic == "nsi":
if command == "terminated" and params["operationState"] in (
"COMPLETED",