RIFT-14481 uptime for vlr, vnfr, nsr 46/846/1
authorPhilip Joseph <philip.joseph@riftio.com>
Tue, 15 Nov 2016 15:18:19 +0000 (10:18 -0500)
committerPhilip Joseph <philip.joseph@riftio.com>
Thu, 29 Dec 2016 13:26:40 +0000 (13:26 +0000)
Original fix by: Ananda Baitharu <ananda.baitharu@riftio.com>
Signed-off-by: Philip Joseph <philip.joseph@riftio.com>
rwlaunchpad/plugins/rwnsm/rift/tasklets/rwnsmtasklet/rwnsmtasklet.py
rwlaunchpad/plugins/rwvnfm/rift/tasklets/rwvnfmtasklet/rwvnfmtasklet.py

index 8534952..2388b91 100755 (executable)
@@ -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"""
index e493d3a..7052299 100755 (executable)
@@ -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