NSXv admin util - cleanup edge vnic bindings

While deleting a backup edge with the admin utility, we should dispose
the edge vnic bindings as well.

Change-Id: Id672ddd5cd3790d7c54d0f6112624671a832be69
This commit is contained in:
Kobi Samoray 2016-02-10 14:51:55 +02:00
parent 5d33132a2e
commit 1e265c8b9f

View File

@ -99,6 +99,8 @@ def nsx_clean_backup_edge(resource, event, trigger, **kwargs):
edgeapi = utils.NeutronDbClient()
nsxv_db.delete_nsxv_router_binding(
edgeapi.context.session, edge[1]['name'])
nsxv_db.clean_edge_vnic_binding(edgeapi.context.session,
edge_id)
except Exception as e:
LOG.error(_LE("%s"), str(e))