RIFT-14481 No create-time on VLR 33/733/1
authorPhilip Joseph <philip.joseph@riftio.com>
Wed, 9 Nov 2016 10:46:28 +0000 (05:46 -0500)
committerPhilip Joseph <philip.joseph@riftio.com>
Mon, 28 Nov 2016 19:36:23 +0000 (01:06 +0530)
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

index de08b82..aec3d09 100755 (executable)
@@ -511,6 +511,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):
@@ -604,6 +605,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,
                     }