NSX|V: Shorten the L2 bridge edge name
The NSX backend support max length of 40 characters, and the name of the edge is not used anywhere other than when it is created, so this patch shorten the name prefix Change-Id: Iab67c2f7df6dc213beb932e4633e9ff04f7daf66
This commit is contained in:
parent
1266bf0901
commit
e4ef701471
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user