Fix l2gw exception handling

Change-Id: I2e10629d8c6c3cf320d7f433663a0b0c6ef417e4
This commit is contained in:
Gary Kotton 2017-06-18 22:58:58 -07:00
parent 0188d9793e
commit ecea69026a

View File

@ -144,7 +144,7 @@ class NsxV3Driver(l2gateway_db.L2GatewayMixin):
try:
self._core_plugin.nsxlib.bridge_cluster.get_id_by_name_or_id(
devices[0]['device_name'])
except nsxlib_exc.ResourceNotFound:
except nsxlib_exc.ManagerError:
msg = _("Could not find Bridge Cluster for L2 gateway device "
"%s on NSX backend") % devices[0]['device_name']
LOG.error(msg)