Skip to content

Commit 467e232

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 2360f75 + 060f59e commit 467e232

File tree

1 file changed

+19
-4
lines changed
  • plugins/son-mano-service-lifecycle-management/son_mano_slm

1 file changed

+19
-4
lines changed

plugins/son-mano-service-lifecycle-management/son_mano_slm/slm.py

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,18 +1887,33 @@ def wan_deconfigure(self, serv_id):
18871887
This method will deconfigure the WAN
18881888
"""
18891889

1890-
# TODO: when WIM implementation is finished
1890+
LOG.info("Service " + serv_id + ": WAN Deonfiguration")
1891+
corr_id = str(uuid.uuid4())
1892+
self.services[serv_id]['act_corr_id'] = corr_id
1893+
1894+
message = {}
1895+
message['service_instance_id'] = serv_id
1896+
1897+
self.manoconn.call_async(self.wan_deconfigure_response,
1898+
t.IA_DECONF_WAN,
1899+
yaml.dump(message),
1900+
correlation_id=corr_id)
18911901

1892-
pass
18931902

18941903
def wan_deconfigure_response(self, ch, method, prop, payload):
18951904
"""
18961905
This method handles responses on the wan_deconfigure call
18971906
"""
18981907

1899-
# TODO: when WIM implementation is finished
1908+
# Get the serv_id of this service
1909+
serv_id = tools.servid_from_corrid(self.services, prop.correlation_id)
19001910

1901-
pass
1911+
message = yaml.load(payload)
1912+
self.services[serv_id]['status'] = message['status']
1913+
self.services[serv_id]['error'] = None
1914+
1915+
# TODO: handle negative status
1916+
self.start_next_task(serv_id)
19021917

19031918
def stop_monitoring(self, serv_id):
19041919
"""

0 commit comments

Comments
 (0)