Merge "[NSXV]Fix l2gateway creation failure"

This commit is contained in:
Jenkins
2017-06-19 15:43:55 +00:00
committed by Gerrit Code Review

View File

@@ -78,7 +78,7 @@ class NsxvL2GatewayDriver(l2gateway_db.L2GatewayMixin):
if not self._nsxv.vcns.validate_network(interfaces[0]['name']):
msg = _("Configured interface not found")
raise n_exc.InvalidInput(error_message=msg)
interface = self.get_l2gateway_interfaces(context,
interface = self._get_l2gateway_interface(context,
interfaces[0]['name'])
if interface:
msg = _("%s is already used.") % interfaces[0]['name']