| 1 |
# Copyright 2015 Cisco Systems, Inc. |
| 2 |
# All Rights Reserved. |
| 3 |
# |
| 4 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 5 |
# not use this file except in compliance with the License. You may obtain |
| 6 |
# a copy of the License at |
| 7 |
# |
| 8 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
# |
| 10 |
# Unless required by applicable law or agreed to in writing, software |
| 11 |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 12 |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 13 |
# License for the specific language governing permissions and limitations |
| 14 |
# under the License. |
| 15 |
|
| 16 |
# Endpoint group types |
| 17 |
SUBNET_ENDPOINT = 'subnet' |
| 18 |
CIDR_ENDPOINT = 'cidr' |
| 19 |
VLAN_ENDPOINT = 'vlan' |
| 20 |
NETWORK_ENDPOINT = 'network' |
| 21 |
ROUTER_ENDPOINT = 'router' |
| 22 |
|
| 23 |
# NOTE: Type usage... |
| 24 |
# IPSec local endpoints - subnet, IPSec peer endpoints - cidr |
| 25 |
# BGP VPN local endpoints - network |
| 26 |
# Direct connect style endpoints - vlan |
| 27 |
# IMPORTANT: The ordering of these is important, as it is used in an enum |
| 28 |
# for the database (and migration script). Only add to this list. |
| 29 |
VPN_SUPPORTED_ENDPOINT_TYPES = [ |
| 30 |
SUBNET_ENDPOINT, CIDR_ENDPOINT, VLAN_ENDPOINT, |
| 31 |
NETWORK_ENDPOINT, ROUTER_ENDPOINT, |
| 32 |
] |
| 33 |
|
| 34 |
AGENT_TYPE_VPN = "VPN Agent" |
| 35 |
|
| 36 |
OVN_AGENT_VPN_SB_CFG_KEY = 'neutron:ovn-vpnagent-sb-cfg' |
| 37 |
OVN_AGENT_VPN_DESC_KEY = 'neutron:description-vpnagent' |
| 38 |
OVN_AGENT_VPN_ID_KEY = 'neutron:ovn-vpnagent-id' |