Browse Source

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
changes/84/230084/2
Abhishek Raut 6 years ago
parent
commit
8ed9217274
  1. 5
      vmware_nsx/services/l2gateway/nsx_v3/driver.py

5
vmware_nsx/services/l2gateway/nsx_v3/driver.py

@ -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…
Cancel
Save