Comment 9 for bug 1477371

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/14212
Committed: http://github.org/Juniper/contrail-controller/commit/3b5d16d137a4f37fd5bf70864a31f1a2612697f3
Submitter: Zuul
Branch: R2.20.x

commit 3b5d16d137a4f37fd5bf70864a31f1a2612697f3
Author: Sachin Bansal <email address hidden>
Date: Fri Sep 11 13:32:50 2015 -0700

Handle deletion of vmi correctly in schema transformer

Currently, schema transformer only deletes VMi from its internal database when
link to VM goes away. This causes problems for VMIs which are not attached to
any VMI (e.g. VMI created for TOR). As a result, when another VMI with same name
is created, schema transformer does not link it to the default RI. With this
change, if the link to its parent goes away, we will delete the VMI locally.

Change-Id: Ic17a31f67a3ca7ee6d7c136bf1d348224f561646
Closes-Bug: 1477371
(cherry picked from commit f78e7047e619abf4fdc2acae626b6ff6f5e24d3c)