Ansible Networking drivers for ML2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

34 lines
1.3 KiB

# Copyright (c) 2018 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from neutron_lib.api.definitions import portbindings
COORDINATION = 'networking_ansible.ml2.mech_driver.coordination'
NETWORKING_ENTITY = 'ANSIBLENETWORKING'
DRIVER_TAG = 'ansible:'
PORT_MAPPINGS = DRIVER_TAG + 'port_mappings'
LLI = 'local_link_information'
CUSTOM_PARAM_PREFIX = 'cp_'
DEVICE_OWNER = 'device_owner'
COMPUTE_NOVA = 'compute:nova'
BAREMETAL_NONE = 'baremetal:none'
SUPPORTED_OWNERS = (BAREMETAL_NONE, COMPUTE_NOVA)
SUPPORTED_TYPES = (portbindings.VNIC_BAREMETAL,
portbindings.VNIC_NORMAL)
# values that will be cast to Bool in the conf process
BOOLEANS = ['manage_vlans', 'stp_edge']
# values that will be rolled into a separate dict and passed to network_runner
EXTRA_PARAMS = ['stp_edge']