blob: 309cc0355571ddc58fa29f0dd945d20b6534cc46 [file] [log] [blame]
Hyunsun Moonb974fca2016-06-30 21:20:39 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Hyunsun Moonb974fca2016-06-30 21:20:39 -07003 *
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 Moon05400872017-02-07 17:11:25 +090016package org.onosproject.openstacknetworking.api;
Hyunsun Moonb974fca2016-06-30 21:20:39 -070017
sangho6032f342016-07-07 14:32:03 +090018import org.onlab.packet.MacAddress;
Hyunsun Moonb974fca2016-06-30 21:20:39 -070019
20/**
sangho6032f342016-07-07 14:32:03 +090021 * Provides constants used in OpenStackSwitching.
Hyunsun Moonb974fca2016-06-30 21:20:39 -070022 */
23public final class Constants {
24
25 private Constants() {
26 }
27
Hyunsun Moon44aac662017-02-18 02:07:01 +090028 public static final String OPENSTACK_NETWORKING_APP_ID = "org.onosproject.openstacknetworking";
sangho6032f342016-07-07 14:32:03 +090029
Jian Lieae12362018-04-10 18:48:32 +090030 public static final String ARP_BROADCAST_MODE = "broadcast";
31 public static final String ARP_PROXY_MODE = "proxy";
32
Hyunsun Moonb3eb84d2016-07-27 19:10:52 -070033 public static final String DEFAULT_GATEWAY_MAC_STR = "fe:00:00:00:00:02";
Jian Li2a43cb32018-04-13 16:23:10 +090034 public static final String DEFAULT_ARP_MODE_STR = ARP_PROXY_MODE;
Hyunsun Moonb3eb84d2016-07-27 19:10:52 -070035 public static final MacAddress DEFAULT_GATEWAY_MAC = MacAddress.valueOf(DEFAULT_GATEWAY_MAC_STR);
Hyunsun Moonb3eb84d2016-07-27 19:10:52 -070036 public static final MacAddress DEFAULT_EXTERNAL_ROUTER_MAC = MacAddress.valueOf("fe:00:00:00:00:01");
Hyunsun Moonb974fca2016-06-30 21:20:39 -070037
Hyunsun Moon44aac662017-02-18 02:07:01 +090038 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;
sanghoe765ce22017-06-23 17:54:57 +090041 public static final int PRIORITY_STATEFUL_SNAT_RULE = 40500;
Hyunsun Moon44aac662017-02-18 02:07:01 +090042 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 parkeeb8e042018-02-21 14:06:58 +090045 public static final int PRIORITY_EXTERNAL_FLOATING_ROUTING_RULE = 26000;
Hyunsun Moon44aac662017-02-18 02:07:01 +090046 public static final int PRIORITY_SNAT_RULE = 26000;
47 public static final int PRIORITY_SWITCHING_RULE = 30000;
daniel park796c2eb2018-03-22 17:01:51 +090048 public static final int PRIORITY_FLAT_RULE = 41000;
49 public static final int PRIORITY_DHCP_RULE = 42000;
sangho1aaa7882017-05-31 13:22:47 +090050 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 Lieae12362018-04-10 18:48:32 +090055 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;
sangho6a9ff0d2017-03-27 11:23:37 +090060
Jian Lieae12362018-04-10 18:48:32 +090061 public static final int DHCP_ARP_TABLE = 0;
Jian Li70a2c3f2018-04-13 17:26:31 +090062 public static final int FLAT_TABLE = 1;
63 public static final int VTAG_TABLE = 10;
64 public static final int ACL_TABLE = 20;
65 public static final int CT_TABLE = 21;
66 public static final int JUMP_TABLE = 30;
67 public static final int ROUTING_TABLE = 40;
68 public static final int FORWARDING_TABLE = 50;
sanghodc375372017-06-08 10:41:30 +090069 public static final int GW_COMMON_TABLE = 0;
Jian Li70a2c3f2018-04-13 17:26:31 +090070 public static final int ERROR_TABLE = 100;
Hyunsun Moonb974fca2016-06-30 21:20:39 -070071}