From 053459bc54b868a45d061797d372b5ae99886f62 Mon Sep 17 00:00:00 2001 From: Zhenmei Date: Mon, 19 Jun 2017 04:23:39 -0400 Subject: [PATCH] [NSXV]Fix l2gateway creation failure Change-Id: I870939312d9986083c2c7f645736e0ede4747184 --- vmware_nsx/services/l2gateway/nsx_v/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsx/services/l2gateway/nsx_v/driver.py b/vmware_nsx/services/l2gateway/nsx_v/driver.py index 6f9705a32e..b9badac850 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): 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']