Merge "Fix l2gw exception handling" into stable/ocata

This commit is contained in:
Jenkins 2017-06-19 15:43:50 +00:00 committed by Gerrit Code Review
commit 391df315fd
1 changed files with 1 additions and 1 deletions

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)