diff --git a/vmware_nsx/services/l2gateway/nsx_v/driver.py b/vmware_nsx/services/l2gateway/nsx_v/driver.py index c201f7748e..6da022e10c 100644 --- a/vmware_nsx/services/l2gateway/nsx_v/driver.py +++ b/vmware_nsx/services/l2gateway/nsx_v/driver.py @@ -162,7 +162,8 @@ class NsxvL2GatewayDriver(l2gateway_db.L2GatewayMixin): device_id = device.get('id') interface = self._get_l2_gw_interfaces(context, device_id) interface_name = interface[0].get("interface_name") - bridge_name = "bridge-" + uuidutils.generate_uuid() + # bridge name length cannot exceed 40 characters + bridge_name = "brg-" + uuidutils.generate_uuid() bridge_dict = {"bridges": {"bridge": {"name": bridge_name,