Debian Codegraph @

networking_l2gw/services/l2gateway/common/constants.py

raw
1 # Copyright 2015 OpenStack Foundation
2 # Copyright (c) 2015 Hewlett-Packard Development Company, L.P.
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 # service type constants:
16 L2GW = "L2GW"
17 l2gw = "l2gw"
18
19 AGENT_TYPE_L2GATEWAY = 'L2 Gateway agent'
20
21 L2GW_INVALID_OVSDB_IDENTIFIER = 101
22
23 ERROR_DICT = {L2GW_INVALID_OVSDB_IDENTIFIER: "Invalid ovsdb_identifier in the "
24 "request"}
25
26 MONITOR = 'monitor'
27 OVSDB_SCHEMA_NAME = 'hardware_vtep'
28 OVSDB_IDENTIFIER = 'ovsdb_identifier'
29 L2GW_AGENT_TYPE = 'l2gw_agent_type'
30 NETWORK_ID = 'network_id'
31 SEG_ID = 'segmentation_id'
32 L2GATEWAY_ID = 'l2_gateway_id'
33 GATEWAY_RESOURCE_NAME = 'l2_gateway'
34 L2_GATEWAYS = 'l2-gateways'
35 DEVICE_ID_ATTR = 'device_name'
36 IFACE_NAME_ATTR = 'interfaces'
37 CONNECTION_RESOURCE_NAME = 'l2_gateway_connection'
38 EXT_ALIAS = 'l2-gateway-connection'
39 L2_GATEWAYS_CONNECTION = "%ss" % EXT_ALIAS
40 BUFFER_SIZE = 4096
41 MAX_RETRIES = 1000
42 L2_GATEWAY_SERVICE_PLUGIN = "Neutron L2 gateway Service Plugin"
43 PORT_FAULT_STATUS_UP = "UP"
44 SWITCH_FAULT_STATUS_UP = "UP"
45 VXLAN = "vxlan"
46 CREATE = "CREATE"
47 DELETE = "DELETE"