Debian Codegraph @

neutron_fwaas/services/firewall/service_drivers/ovn/constants.py

raw symbols SCIP
1 # Copyright 2022 EasyStack, 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 from neutron_lib import constants as const
17
18 OVN_FWG_EXT_ID_KEY = 'neutron:firewall_group_id'
19 OVN_FWR_EXT_ID_KEY = 'neutron:firewall_rule_id'
20 ACL_ACTION_DROP = 'drop'
21 ACL_ACTION_REJECT = 'reject'
22 ACL_ACTION_ALLOW_STATELESS = 'allow-stateless'
23 ACL_ACTION_ALLOW = 'allow'
24 ACL_PRIORITY_INGRESS = 2000
25 ACL_PRIORITY_EGRESS = 2000
26 ACL_PRIORITY_DEFAULT = 1001
27 OP_ADD = 'add'
28 OP_DEL = 'del'
29 OP_MOD = 'mod'
30 DEFAULT_RULE = 'is_default'
31 DEFAULT_RULE_ID = 'default_rule'
32
33 # Drop acls of ipv4 or ipv6 with two directions, so number of
34 # default acls is 4
35 DEFAULT_ACL_NUM = 4
36
37 # Group of transport protocols supported
38 TRANSPORT_PROTOCOLS = (const.PROTO_NAME_TCP,
39 const.PROTO_NAME_UDP,
40 const.PROTO_NAME_SCTP)
41
42 # Group of versions of the ICMP protocol supported
43 ICMP_PROTOCOLS = (const.PROTO_NAME_ICMP,
44 const.PROTO_NAME_IPV6_ICMP)