Hyunsun Moon | b974fca | 2016-06-30 21:20:39 -0700 | [diff] [blame] | 1 | /* |
| 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 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 | |
Hyunsun Moon | b3eb84d | 2016-07-27 19:10:52 -0700 | [diff] [blame] | 30 | 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 Moon | b3eb84d | 2016-07-27 19:10:52 -0700 | [diff] [blame] | 32 | 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] | 33 | |
Hyunsun Moon | 44aac66 | 2017-02-18 02:07:01 +0900 | [diff] [blame] | 34 | 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; |
sangho | 6a9ff0d | 2017-03-27 11:23:37 +0900 | [diff] [blame^] | 42 | public static final int PRIORITY_ACL_RULE = 30000; |
| 43 | |
Hyunsun Moon | b974fca | 2016-06-30 21:20:39 -0700 | [diff] [blame] | 44 | } |