Merge "Missed l2gw port check in driver"

This commit is contained in:
Jenkins 2015-10-01 21:05:13 +00:00 committed by Gerrit Code Review
commit 9fbfd5c6a5

View File

@ -203,7 +203,10 @@ class NsxV3Driver(l2gateway_db.L2GatewayMixin):
'device_owner': nsx_constants.BRIDGE_ENDPOINT,
'name': '', }}
try:
port = self._core_plugin.create_port(context, port_dict)
#TODO(abhiraut): Consider adding UT for port check once UTs are
# refactored
port = self._core_plugin.create_port(context, port_dict,
l2gw_port_check=True)
# Deallocate IP address from the port.
for fixed_ip in port.get('fixed_ips', []):
self._core_plugin._delete_ip_allocation(context, network_id,