ovs/sriov mech drivers: resource_provider_uuid5_namespace
Set a UUID v5 namespace for the Open vSwitch mechanism driver and another for the SR-IOV mechanism driver. These will be used to deterministically generate Placement Resource Provider UUIDs. Change-Id: I365a0aeefffe68bd7d5ba5f6697b814bf2713a19 Depends-On: https://review.openstack.org/586567 Partial-Bug: #1578989 See-Also: https://review.openstack.org/502306 (nova spec) See-Also: https://review.openstack.org/508149 (neutron spec)
This commit is contained in:
parent
8bd5ecd4fc
commit
69d6b86f56
@ -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
|
||||
@ -41,6 +43,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},
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user