summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-19 15:43:55 +0000
committerGerrit Code Review <review@openstack.org>2017-06-19 15:43:55 +0000
commit7b3539c421166ac5150d534d60ccbcb842daa634 (patch)
treee1b59fa997bdba6ae2796da2fe210a2b84806340
parent03548e289be648166f369e48ce955426cad8f29d (diff)
parent053459bc54b868a45d061797d372b5ae99886f62 (diff)
Merge "[NSXV]Fix l2gateway creation failure"
-rw-r--r--vmware_nsx/services/l2gateway/nsx_v/driver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/vmware_nsx/services/l2gateway/nsx_v/driver.py b/vmware_nsx/services/l2gateway/nsx_v/driver.py
index 6f9705a..b9badac 100644
--- a/vmware_nsx/services/l2gateway/nsx_v/driver.py
+++ b/vmware_nsx/services/l2gateway/nsx_v/driver.py
@@ -78,7 +78,7 @@ class NsxvL2GatewayDriver(l2gateway_db.L2GatewayMixin):
78 if not self._nsxv.vcns.validate_network(interfaces[0]['name']): 78 if not self._nsxv.vcns.validate_network(interfaces[0]['name']):
79 msg = _("Configured interface not found") 79 msg = _("Configured interface not found")
80 raise n_exc.InvalidInput(error_message=msg) 80 raise n_exc.InvalidInput(error_message=msg)
81 interface = self.get_l2gateway_interfaces(context, 81 interface = self._get_l2gateway_interface(context,
82 interfaces[0]['name']) 82 interfaces[0]['name'])
83 if interface: 83 if interface:
84 msg = _("%s is already used.") % interfaces[0]['name'] 84 msg = _("%s is already used.") % interfaces[0]['name']