RIFT-14481 No create-time on VLR 48/648/1
authorAnanda Baitharu <ananda.baitharu@riftio.com>
Wed, 9 Nov 2016 10:46:28 +0000 (05:46 -0500)
committerAnanda Baitharu <ananda.baitharu@riftio.com>
Wed, 9 Nov 2016 10:46:28 +0000 (05:46 -0500)
Signed-off-by: Ananda Baitharu <ananda.baitharu@riftio.com>
rwlaunchpad/plugins/rwnsm/rift/tasklets/rwnsmtasklet/rwnsmtasklet.py

index cf03857..002431d 100755 (executable)
@@ -515,6 +515,7 @@ class VirtualLinkRecord(object):
         self._vlr_id = str(uuid.uuid4())
         self._state = VlRecordState.INIT
         self._prev_state = None
+        self._create_time = int(time.time())
 
     @property
     def xpath(self):
@@ -608,6 +609,7 @@ class VirtualLinkRecord(object):
                     "nsr_id_ref": self._nsr_id,
                     "vld_ref": self.vld_msg.id,
                     "name": self.name,
+                    "create_time": self._create_time,
                     "cloud_account": self.cloud_account_name,
                     "om_datacenter": self.om_datacenter_name,
                     }