diff --git a/neutron/plugins/ml2/drivers/mech_sriov/mech_driver/mech_driver.py b/neutron/plugins/ml2/drivers/mech_sriov/mech_driver/mech_driver.py index ca44975d681..829d44b20c6 100644 --- a/neutron/plugins/ml2/drivers/mech_sriov/mech_driver/mech_driver.py +++ b/neutron/plugins/ml2/drivers/mech_sriov/mech_driver/mech_driver.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +import uuid + from neutron_lib.api.definitions import portbindings from neutron_lib import constants from neutron_lib.plugins.ml2 import api @@ -47,6 +49,9 @@ class SriovNicSwitchMechanismDriver(mech_agent.SimpleAgentMechanismDriverBase): L2 Agent presents in order to manage port update events. """ + resource_provider_uuid5_namespace = uuid.UUID( + '87f1895c-73bb-11e8-9008-c4d987b2a692') + def __init__(self, agent_type=constants.AGENT_TYPE_NIC_SWITCH, vif_details={portbindings.CAP_PORT_FILTER: False}, diff --git a/neutron/plugins/ml2/drivers/openvswitch/mech_driver/mech_openvswitch.py b/neutron/plugins/ml2/drivers/openvswitch/mech_driver/mech_openvswitch.py index 8d67ca2ffd6..e024ad7dd94 100644 --- a/neutron/plugins/ml2/drivers/openvswitch/mech_driver/mech_openvswitch.py +++ b/neutron/plugins/ml2/drivers/openvswitch/mech_driver/mech_openvswitch.py @@ -14,6 +14,7 @@ # under the License. import os +import uuid from neutron_lib.api.definitions import portbindings from neutron_lib.callbacks import events @@ -48,6 +49,9 @@ class OpenvswitchMechanismDriver(mech_agent.SimpleAgentMechanismDriverBase): network. """ + resource_provider_uuid5_namespace = uuid.UUID( + '87ee7d5c-73bb-11e8-9008-c4d987b2a692') + def __init__(self): sg_enabled = securitygroups_rpc.is_firewall_enabled() hybrid_plug_required = (not cfg.CONF.SECURITYGROUP.firewall_driver or