From e04ea6a9ba1aa2adf45110589132d17a417384c2 Mon Sep 17 00:00:00 2001 From: Philip Joseph Date: Tue, 15 Nov 2016 10:18:19 -0500 Subject: [PATCH] RIFT-14481 uptime for vlr, vnfr, nsr Original fix by: Ananda Baitharu Signed-off-by: Philip Joseph --- .../plugins/rwnsm/rift/tasklets/rwnsmtasklet/rwnsmtasklet.py | 1 - .../rwvnfm/rift/tasklets/rwvnfmtasklet/rwvnfmtasklet.py | 3 --- 2 files changed, 4 deletions(-) diff --git a/rwlaunchpad/plugins/rwnsm/rift/tasklets/rwnsmtasklet/rwnsmtasklet.py b/rwlaunchpad/plugins/rwnsm/rift/tasklets/rwnsmtasklet/rwnsmtasklet.py index 85349521..2388b91d 100755 --- a/rwlaunchpad/plugins/rwnsm/rift/tasklets/rwnsmtasklet/rwnsmtasklet.py +++ b/rwlaunchpad/plugins/rwnsm/rift/tasklets/rwnsmtasklet/rwnsmtasklet.py @@ -1470,7 +1470,6 @@ class NetworkServiceRecord(object): self._log.debug("Received cancellation request for vlr_uptime_update task") yield from self._vlr_handler.delete(None, VirtualLinkRecord.vlr_xpath(vlr)) - @asyncio.coroutine def create(self, config_xact): """ Create this network service""" diff --git a/rwlaunchpad/plugins/rwvnfm/rift/tasklets/rwvnfmtasklet/rwvnfmtasklet.py b/rwlaunchpad/plugins/rwvnfm/rift/tasklets/rwvnfmtasklet/rwvnfmtasklet.py index e493d3a0..70522994 100755 --- a/rwlaunchpad/plugins/rwvnfm/rift/tasklets/rwvnfmtasklet/rwvnfmtasklet.py +++ b/rwlaunchpad/plugins/rwvnfm/rift/tasklets/rwvnfmtasklet/rwvnfmtasklet.py @@ -1336,9 +1336,6 @@ class VirtualNetworkFunctionRecord(object): vnfr_dict.update(vnfd_copy_dict) vnfr_msg = RwVnfrYang.YangData_Vnfr_VnfrCatalog_Vnfr.from_dict(vnfr_dict) - vnfr_msg.vnfd = VnfrYang.YangData_Vnfr_VnfrCatalog_Vnfr_Vnfd.from_dict(self.vnfd.as_dict()) - - vnfr_msg.create_time = self._create_time vnfr_msg.uptime = int(time.time()) - self._create_time vnfr_msg.mgmt_interface = mgmt_intf -- 2.25.1