+ timestamp = str(int((time.time() + 2) * 1000000000)) if set_new_timestamp else str(
+ int((time.time() - 300) * 1000000000))
+ r.set("{{e2Manager}},E2TInstance:{}".format(et2_address),
+ "{{\"address\":\"{}\",\"associatedRanList\":[],\"keepAliveTimestamp\":".format(et2_address) + timestamp +
+ ",\"state\":\"ACTIVE\",\"deletionTimeStamp\":0}")