Merge "NSXv: Resume router port delete when edge missing"
This commit is contained in:
commit
f0a960274b
@ -2979,8 +2979,12 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin,
|
||||
|
||||
# TODO(berlin): Add fw rules if fw service is supported
|
||||
fake_fw = {'firewall_rule_list': fake_fw_rules}
|
||||
edge_utils.update_firewall(self.nsx_v, context, router_id, fake_fw,
|
||||
allow_external=allow_external)
|
||||
try:
|
||||
edge_utils.update_firewall(self.nsx_v, context, router_id, fake_fw,
|
||||
allow_external=allow_external)
|
||||
except vsh_exc.ResourceNotFound:
|
||||
LOG.error(_LE("Failed to update firewall for router %s"),
|
||||
router_id)
|
||||
|
||||
# Security group handling section #
|
||||
def _delete_nsx_security_group(self, nsx_sg_id):
|
||||
|
@ -338,6 +338,11 @@ class EdgeApplianceDriver(object):
|
||||
{'vnic_index': index, 'edge_id': edge_id})
|
||||
try:
|
||||
self.vcns.delete_interface(edge_id, index)
|
||||
except exceptions.ResourceNotFound:
|
||||
LOG.error(_LE('Failed to delete vnic %(vnic_index)s on edge '
|
||||
'%(edge_id)s: edge was not found'),
|
||||
{'vnic_index': index,
|
||||
'edge_id': edge_id})
|
||||
except exceptions.VcnsApiException:
|
||||
with excutils.save_and_reraise_exception():
|
||||
LOG.exception(_LE("Failed to delete vnic %(vnic_index)s: "
|
||||
|
Loading…
x
Reference in New Issue
Block a user