When there is an add followed by delete, back-to-back, it is possible
VNC layer may not have updated the VM with vrouter info, as that ref
update is a seperate event.
Since VM's are always expected to vrouter info, if the ref is missing,
update that vrouter record in config db by reading from vnc.
Reviewed: https:/ /review. opencontrail. org/31507 github. com/Juniper/ contrail- controller/ commit/ d96f298e001c002 de35d9e3b7e1958 cb11a721c5
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: master
commit d96f298e001c002 de35d9e3b7e1958 cb11a721c5
Author: dineshb-jnpr <email address hidden>
Date: Fri May 12 16:02:11 2017 -0700
Fix VM-Vrouter ref update race.
When there is an add followed by delete, back-to-back, it is possible
VNC layer may not have updated the VM with vrouter info, as that ref
update is a seperate event.
Since VM's are always expected to vrouter info, if the ref is missing,
update that vrouter record in config db by reading from vnc.
Change-Id: I1771bad79ea6f5 8a768d948122445 6fe7089534e
Closes-Bug: #1689905