Missed l2gw port check in driver
Currently the l2gw port is created as a logical port for the switch but not plugged in the bridge endpoint for bridging. This check will ensures that the port is plugged in the bridge endpoint. Change-Id: Ifeabd1111fdd1a29c32cab1d4a0fbf8a833a4706
This commit is contained in:
parent
4b57fc37ab
commit
8ed9217274
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue