diff --git a/f5lbaasdriver/v2/bigip/plugin_rpc.py b/f5lbaasdriver/v2/bigip/plugin_rpc.py index 3b5ba6701..3f988236a 100644 --- a/f5lbaasdriver/v2/bigip/plugin_rpc.py +++ b/f5lbaasdriver/v2/bigip/plugin_rpc.py @@ -539,7 +539,8 @@ def create_port_on_subnet(self, context, subnet_id=None, if device_id: port_data['device_id'] = device_id else: - port_data['device_id'] = str(uuid.uuid5(uuid.NAMESPACE_DNS, str(host))) + port_data['device_id'] = str(uuid.uuid5( + uuid.NAMESPACE_DNS, str(host))) port_data[portbindings.HOST_ID] = host port_data[portbindings.VNIC_TYPE] = vnic_type port_data[portbindings.PROFILE] = binding_profile @@ -705,7 +706,8 @@ def create_port_on_network(self, context, network_id=None, if device_id: port_data['device_id'] = device_id else: - port_data['device_id'] = str(uuid.uuid5(uuid.NAMESPACE_DNS, str(host))) + port_data['device_id'] = str(uuid.uuid5( + uuid.NAMESPACE_DNS, str(host))) port_data[portbindings.HOST_ID] = host port_data[portbindings.VNIC_TYPE] = vnic_type port_data[portbindings.PROFILE] = binding_profile