
This patch creates a new driver using NB DB information instead of SB DB. This has 2 objective: - Alleviate the stress on big scale environment due to many connections to the SB DBs. - Being more future proof as content generated in the SB DBs based on NB DB information is subject to change. For example we were already adviced that the information we are currently using for ovn LB events at the SB DB is probably going to change soon. Depends-On: https://review.opendev.org/c/openstack/ovsdbapp/+/873853 Change-Id: Ib6bf077ce1e354652f5b728bd7192c762d3d071b
67 lines
2.0 KiB
Python
67 lines
2.0 KiB
Python
# Copyright 2021 Red Hat, Inc.
|
|
#
|
|
# 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.
|
|
|
|
OVN_VIF_PORT_TYPES = ("", "chassisredirect", "virtual")
|
|
|
|
OVN_VIRTUAL_VIF_PORT_TYPE = "virtual"
|
|
OVN_VM_VIF_PORT_TYPE = ""
|
|
OVN_PATCH_VIF_PORT_TYPE = "patch"
|
|
OVN_CHASSISREDIRECT_VIF_PORT_TYPE = "chassisredirect"
|
|
OVN_LOCALNET_VIF_PORT_TYPE = "localnet"
|
|
OVN_DNAT_AND_SNAT = "dnat_and_snat"
|
|
|
|
OVN_CIDRS_EXT_ID_KEY = 'neutron:cidrs'
|
|
OVN_PORT_NAME_EXT_ID_KEY = 'neutron:port_name'
|
|
OVN_LS_NAME_EXT_ID_KEY = 'neutron:network_name'
|
|
OVN_FIP_EXT_ID_KEY = 'neutron:port_fip'
|
|
OVN_FIP_NET_EXT_ID_KEY = 'neutron:fip_network_id'
|
|
LB_VIP_PORT_PREFIX = "ovn-lb-vip-"
|
|
|
|
OVS_RULE_COOKIE = "999"
|
|
OVS_VRF_RULE_COOKIE = "998"
|
|
|
|
FRR_SOCKET_PATH = "/run/frr/"
|
|
|
|
IP_VERSION_6 = 6
|
|
IP_VERSION_4 = 4
|
|
|
|
BGP_MODE = 'BGP'
|
|
EVPN_MODE = 'EVPN'
|
|
|
|
OVN_EVPN_VNI_EXT_ID_KEY = 'neutron_bgpvpn:vni'
|
|
OVN_EVPN_AS_EXT_ID_KEY = 'neutron_bgpvpn:as'
|
|
OVN_EVPN_VRF_PREFIX = "vrf-"
|
|
OVN_EVPN_BRIDGE_PREFIX = "br-"
|
|
OVN_EVPN_VXLAN_PREFIX = "vxlan-"
|
|
OVN_EVPN_VLAN_PREFIX = "vlan-"
|
|
OVN_EVPN_LO_PREFIX = "lo-"
|
|
OVN_EVPN_VETH_VRF_PREFIX = "veth-vrf-"
|
|
OVN_EVPN_VETH_OVS_PREFIX = "veth-ovs-"
|
|
OVN_INTEGRATION_BRIDGE = 'br-int'
|
|
OVN_LRP_PORT_NAME_PREFIX = 'lrp-'
|
|
OVN_CRLRP_PORT_NAME_PREFIX = 'cr-lrp-'
|
|
|
|
OVS_PATCH_PROVNET_PORT_PREFIX = 'patch-provnet-'
|
|
|
|
LINK_UP = "up"
|
|
LINK_DOWN = "down"
|
|
|
|
SUBNET_POOL_ADDR_SCOPE4 = "neutron:subnet_pool_addr_scope4"
|
|
SUBNET_POOL_ADDR_SCOPE6 = "neutron:subnet_pool_addr_scope6"
|
|
|
|
EXPOSE = "expose"
|
|
WITHDRAW = "withdraw"
|
|
|
|
OVN_REQUESTED_CHASSIS = "requested-chassis"
|