Hyunsun Moon | b974fca | 2016-06-30 21:20:39 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Foundation |
Hyunsun Moon | b974fca | 2016-06-30 21:20:39 -0700 | [diff] [blame] | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain 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, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
Hyunsun Moon | 0540087 | 2017-02-07 17:11:25 +0900 | [diff] [blame] | 16 | package org.onosproject.openstacknetworking.api; |
Hyunsun Moon | b974fca | 2016-06-30 21:20:39 -0700 | [diff] [blame] | 17 | |
sangho | 6032f34 | 2016-07-07 14:32:03 +0900 | [diff] [blame] | 18 | import org.onlab.packet.MacAddress; |
Hyunsun Moon | b974fca | 2016-06-30 21:20:39 -0700 | [diff] [blame] | 19 | |
| 20 | /** |
sangho | 6032f34 | 2016-07-07 14:32:03 +0900 | [diff] [blame] | 21 | * Provides constants used in OpenStackSwitching. |
Hyunsun Moon | b974fca | 2016-06-30 21:20:39 -0700 | [diff] [blame] | 22 | */ |
| 23 | public final class Constants { |
| 24 | |
| 25 | private Constants() { |
| 26 | } |
| 27 | |
Hyunsun Moon | 44aac66 | 2017-02-18 02:07:01 +0900 | [diff] [blame] | 28 | public static final String OPENSTACK_NETWORKING_APP_ID = "org.onosproject.openstacknetworking"; |
sangho | 6032f34 | 2016-07-07 14:32:03 +0900 | [diff] [blame] | 29 | |
Jian Li | eae1236 | 2018-04-10 18:48:32 +0900 | [diff] [blame] | 30 | public static final String ARP_BROADCAST_MODE = "broadcast"; |
| 31 | public static final String ARP_PROXY_MODE = "proxy"; |
| 32 | |
Hyunsun Moon | b3eb84d | 2016-07-27 19:10:52 -0700 | [diff] [blame] | 33 | public static final String DEFAULT_GATEWAY_MAC_STR = "fe:00:00:00:00:02"; |
Jian Li | 2a43cb3 | 2018-04-13 16:23:10 +0900 | [diff] [blame] | 34 | public static final String DEFAULT_ARP_MODE_STR = ARP_PROXY_MODE; |
Hyunsun Moon | b3eb84d | 2016-07-27 19:10:52 -0700 | [diff] [blame] | 35 | public static final MacAddress DEFAULT_GATEWAY_MAC = MacAddress.valueOf(DEFAULT_GATEWAY_MAC_STR); |
Hyunsun Moon | b3eb84d | 2016-07-27 19:10:52 -0700 | [diff] [blame] | 36 | public static final MacAddress DEFAULT_EXTERNAL_ROUTER_MAC = MacAddress.valueOf("fe:00:00:00:00:01"); |
Hyunsun Moon | b974fca | 2016-06-30 21:20:39 -0700 | [diff] [blame] | 37 | |
Hyunsun Moon | 44aac66 | 2017-02-18 02:07:01 +0900 | [diff] [blame] | 38 | public static final int PRIORITY_TUNNEL_TAG_RULE = 30000; |
| 39 | public static final int PRIORITY_FLOATING_INTERNAL = 42000; |
| 40 | public static final int PRIORITY_FLOATING_EXTERNAL = 41000; |
sangho | e765ce2 | 2017-06-23 17:54:57 +0900 | [diff] [blame] | 41 | public static final int PRIORITY_STATEFUL_SNAT_RULE = 40500; |
Hyunsun Moon | 44aac66 | 2017-02-18 02:07:01 +0900 | [diff] [blame] | 42 | public static final int PRIORITY_ICMP_RULE = 43000; |
| 43 | public static final int PRIORITY_INTERNAL_ROUTING_RULE = 28000; |
| 44 | public static final int PRIORITY_EXTERNAL_ROUTING_RULE = 25000; |
daniel park | eeb8e04 | 2018-02-21 14:06:58 +0900 | [diff] [blame] | 45 | public static final int PRIORITY_EXTERNAL_FLOATING_ROUTING_RULE = 26000; |
Hyunsun Moon | 44aac66 | 2017-02-18 02:07:01 +0900 | [diff] [blame] | 46 | public static final int PRIORITY_SNAT_RULE = 26000; |
| 47 | public static final int PRIORITY_SWITCHING_RULE = 30000; |
daniel park | 796c2eb | 2018-03-22 17:01:51 +0900 | [diff] [blame] | 48 | public static final int PRIORITY_FLAT_RULE = 41000; |
| 49 | public static final int PRIORITY_DHCP_RULE = 42000; |
sangho | 1aaa788 | 2017-05-31 13:22:47 +0900 | [diff] [blame] | 50 | public static final int PRIORITY_ADMIN_RULE = 32000; |
| 51 | public static final int PRIORITY_ACL_RULE = 31000; |
| 52 | public static final int PRIORITY_CT_HOOK_RULE = 30500; |
| 53 | public static final int PRIORITY_CT_RULE = 32000; |
| 54 | public static final int PRIORITY_CT_DROP_RULE = 32500; |
Jian Li | eae1236 | 2018-04-10 18:48:32 +0900 | [diff] [blame] | 55 | public static final int PRIORITY_ARP_GATEWAY_RULE = 41000; |
| 56 | public static final int PRIORITY_ARP_SUBNET_RULE = 40000; |
| 57 | public static final int PRIORITY_ARP_CONTROL_RULE = 40000; |
| 58 | public static final int PRIORITY_ARP_REPLY_RULE = 40000; |
| 59 | public static final int PRIORITY_ARP_REQUEST_RULE = 40000; |
sangho | 6a9ff0d | 2017-03-27 11:23:37 +0900 | [diff] [blame] | 60 | |
Jian Li | eae1236 | 2018-04-10 18:48:32 +0900 | [diff] [blame] | 61 | public static final int DHCP_ARP_TABLE = 0; |
sangho | dbee233 | 2017-05-18 09:59:16 +0900 | [diff] [blame] | 62 | public static final int SRC_VNI_TABLE = 0; |
| 63 | public static final int ACL_TABLE = 1; |
sangho | 1aaa788 | 2017-05-31 13:22:47 +0900 | [diff] [blame] | 64 | public static final int CT_TABLE = 2; |
| 65 | public static final int JUMP_TABLE = 3; |
| 66 | public static final int ROUTING_TABLE = 4; |
| 67 | public static final int FORWARDING_TABLE = 5; |
sangho | dc37537 | 2017-06-08 10:41:30 +0900 | [diff] [blame] | 68 | public static final int GW_COMMON_TABLE = 0; |
sangho | 1aaa788 | 2017-05-31 13:22:47 +0900 | [diff] [blame] | 69 | public static final int ERROR_TABLE = 10; |
Hyunsun Moon | b974fca | 2016-06-30 21:20:39 -0700 | [diff] [blame] | 70 | } |