
Keeping device names used by Kuryr consistent with those used by Nova makes the users' and operators' experience better. It also makes debugging easier for those used to names employed by Nova. This patch set changes the tap device name to use part of the Neutron port id. Closes-Bug: #1582348 Change-Id: I502f7bba09044106885de28cef8a432d5b5b1321
34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
# 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.
|
|
|
|
|
|
SCHEMA = {
|
|
"PLUGIN_ACTIVATE": {"Implements": ["NetworkDriver", "IpamDriver"]},
|
|
# TODO(tfukushima): This is mocked and should be replaced with real data.
|
|
"ENDPOINT_OPER_INFO": {"Value": {}},
|
|
"SUCCESS": {}
|
|
}
|
|
|
|
DEVICE_OWNER = 'kuryr:container'
|
|
NIC_NAME_LEN = 14
|
|
VETH_PREFIX = 'tap'
|
|
CONTAINER_VETH_PREFIX = 't_c'
|
|
|
|
NEUTRON_ID_LH_OPTION = 'kuryr.net.uuid.lh'
|
|
NEUTRON_ID_UH_OPTION = 'kuryr.net.uuid.uh'
|
|
NET_NAME_PREFIX = 'kuryr-net-'
|
|
|
|
NETWORK_GENERIC_OPTIONS = 'com.docker.network.generic'
|
|
NEUTRON_UUID_OPTION = 'neutron.net.uuid'
|
|
NEUTRON_NAME_OPTION = 'neutron.net.name'
|
|
KURYR_EXISTING_NEUTRON_NET = 'kuryr.net.existing'
|