blob: 8a7a2bbd927b043d24fcf1a7dcc8608c8bd9d6be [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
Hyunsun Moonb3eb84d2016-07-27 19:10:52 -070030 public static final String DEFAULT_GATEWAY_MAC_STR = "fe:00:00:00:00:02";
31 public static final MacAddress DEFAULT_GATEWAY_MAC = MacAddress.valueOf(DEFAULT_GATEWAY_MAC_STR);
Hyunsun Moonb3eb84d2016-07-27 19:10:52 -070032 public static final MacAddress DEFAULT_EXTERNAL_ROUTER_MAC = MacAddress.valueOf("fe:00:00:00:00:01");
Hyunsun Moonb974fca2016-06-30 21:20:39 -070033
Hyunsun Moon44aac662017-02-18 02:07:01 +090034 public static final int PRIORITY_TUNNEL_TAG_RULE = 30000;
35 public static final int PRIORITY_FLOATING_INTERNAL = 42000;
36 public static final int PRIORITY_FLOATING_EXTERNAL = 41000;
sanghoe765ce22017-06-23 17:54:57 +090037 public static final int PRIORITY_STATEFUL_SNAT_RULE = 40500;
Hyunsun Moon44aac662017-02-18 02:07:01 +090038 public static final int PRIORITY_ICMP_RULE = 43000;
39 public static final int PRIORITY_INTERNAL_ROUTING_RULE = 28000;
40 public static final int PRIORITY_EXTERNAL_ROUTING_RULE = 25000;
daniel parkeeb8e042018-02-21 14:06:58 +090041 public static final int PRIORITY_EXTERNAL_FLOATING_ROUTING_RULE = 26000;
Hyunsun Moon44aac662017-02-18 02:07:01 +090042 public static final int PRIORITY_SNAT_RULE = 26000;
43 public static final int PRIORITY_SWITCHING_RULE = 30000;
sangho1aaa7882017-05-31 13:22:47 +090044 public static final int PRIORITY_ADMIN_RULE = 32000;
45 public static final int PRIORITY_ACL_RULE = 31000;
46 public static final int PRIORITY_CT_HOOK_RULE = 30500;
47 public static final int PRIORITY_CT_RULE = 32000;
48 public static final int PRIORITY_CT_DROP_RULE = 32500;
sangho6a9ff0d2017-03-27 11:23:37 +090049
sanghodbee2332017-05-18 09:59:16 +090050 public static final int SRC_VNI_TABLE = 0;
51 public static final int ACL_TABLE = 1;
sangho1aaa7882017-05-31 13:22:47 +090052 public static final int CT_TABLE = 2;
53 public static final int JUMP_TABLE = 3;
54 public static final int ROUTING_TABLE = 4;
55 public static final int FORWARDING_TABLE = 5;
sanghodc375372017-06-08 10:41:30 +090056 public static final int GW_COMMON_TABLE = 0;
sangho1aaa7882017-05-31 13:22:47 +090057 public static final int ERROR_TABLE = 10;
Hyunsun Moonb974fca2016-06-30 21:20:39 -070058}