blob: a1d5ace1248986b58d9cf700126a97804fc3d5b9 [file] [log] [blame]
Hyunsun Moonb974fca2016-06-30 21:20:39 -07001/*
2 * Copyright 2016-present Open Networking Laboratory
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 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;
37 public static final int PRIORITY_ICMP_RULE = 43000;
38 public static final int PRIORITY_INTERNAL_ROUTING_RULE = 28000;
39 public static final int PRIORITY_EXTERNAL_ROUTING_RULE = 25000;
40 public static final int PRIORITY_SNAT_RULE = 26000;
41 public static final int PRIORITY_SWITCHING_RULE = 30000;
sangho6a9ff0d2017-03-27 11:23:37 +090042 public static final int PRIORITY_ACL_RULE = 30000;
43
Hyunsun Moonb974fca2016-06-30 21:20:39 -070044}