- r.set("{e2Manager},E2TInstance:127.0.0.1:38000","{\"address\":\"127.0.0.1:38000\",\"associatedRanList\":[],\"keepAliveTimestamp\":" + str(int((time.time()+2) * 1000000000)) + ",\"state\":\"ACTIVE\",\"deletionTimeStamp\":0}")
+ 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}")