Merge "NSX|V: check edge ID before locking edge"
This commit is contained in:
commit
cc9b311dc9
@ -437,6 +437,11 @@ class NsxVMetadataProxyHandler(object):
|
|||||||
|
|
||||||
rtr_id = rtr['id']
|
rtr_id = rtr['id']
|
||||||
edge_id = self._get_edge_id_by_rtr_id(context, rtr_id)
|
edge_id = self._get_edge_id_by_rtr_id(context, rtr_id)
|
||||||
|
if not edge_id:
|
||||||
|
LOG.error('No edge create for router - %s', rtr_id)
|
||||||
|
if rtr_id:
|
||||||
|
self.nsxv_plugin.delete_router(context, rtr_id)
|
||||||
|
return
|
||||||
|
|
||||||
self.nsxv_plugin.nsx_v.update_interface(
|
self.nsxv_plugin.nsx_v.update_interface(
|
||||||
rtr['id'],
|
rtr['id'],
|
||||||
|
Loading…
Reference in New Issue
Block a user