| 1 |
# |
| 2 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 3 |
# not use this file except in compliance with the License. You may obtain |
| 4 |
# a copy of the License at |
| 5 |
# |
| 6 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 7 |
# |
| 8 |
# Unless required by applicable law or agreed to in writing, software |
| 9 |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 10 |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 11 |
# License for the specific language governing permissions and limitations |
| 12 |
# under the License. |
| 13 |
|
| 14 |
# neutron-fwaas constants |
| 15 |
from neutron_lib import constants |
| 16 |
|
| 17 |
FIREWALL_GROUPS = 'firewall_groups' |
| 18 |
FIREWALL_POLICIES = 'firewall_policies' |
| 19 |
FIREWALL_RULES = 'firewall_rules' |
| 20 |
FIREWALLS = 'firewalls' |
| 21 |
|
| 22 |
FWAAS_ALLOW = "allow" |
| 23 |
FWAAS_DENY = "deny" |
| 24 |
FWAAS_REJECT = "reject" |
| 25 |
FW_VALID_ACTION_VALUES = [FWAAS_ALLOW, FWAAS_DENY, FWAAS_REJECT] |
| 26 |
|
| 27 |
# Firewall Protocol List |
| 28 |
|
| 29 |
FW_PROTOCOL_VALUES = list(constants.IPTABLES_PROTOCOL_MAP.keys()) + [None] |
| 30 |
|
| 31 |
# a default resource, such as auto allocated topology is_default network |
| 32 |
IS_DEFAULT = 'is_default' |