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 | */ |
sangho | 6032f34 | 2016-07-07 14:32:03 +0900 | [diff] [blame^] | 16 | package org.onosproject.openstacknetworking; |
Hyunsun Moon | b974fca | 2016-06-30 21:20:39 -0700 | [diff] [blame] | 17 | |
| 18 | import org.onlab.packet.Ip4Address; |
| 19 | import org.onlab.packet.Ip4Prefix; |
| 20 | import org.onlab.packet.IpPrefix; |
sangho | 6032f34 | 2016-07-07 14:32:03 +0900 | [diff] [blame^] | 21 | import org.onlab.packet.MacAddress; |
Hyunsun Moon | b974fca | 2016-06-30 21:20:39 -0700 | [diff] [blame] | 22 | |
| 23 | /** |
sangho | 6032f34 | 2016-07-07 14:32:03 +0900 | [diff] [blame^] | 24 | * Provides constants used in OpenStackSwitching. |
Hyunsun Moon | b974fca | 2016-06-30 21:20:39 -0700 | [diff] [blame] | 25 | */ |
| 26 | public final class Constants { |
| 27 | |
| 28 | private Constants() { |
| 29 | } |
| 30 | |
| 31 | public static final String APP_ID = "org.onosproject.openstackswitching"; |
| 32 | |
| 33 | public static final String PORTNAME_PREFIX_VM = "tap"; |
| 34 | public static final String PORTNAME_PREFIX_ROUTER = "qr-"; |
| 35 | public static final String PORTNAME_PREFIX_TUNNEL = "vxlan"; |
| 36 | |
sangho | 6032f34 | 2016-07-07 14:32:03 +0900 | [diff] [blame^] | 37 | public static final MacAddress GATEWAY_MAC = MacAddress.valueOf("1f:1f:1f:1f:1f:1f"); |
| 38 | |
| 39 | // TODO: Please change these valuses following the way vrouter is implemented |
| 40 | public static final MacAddress GW_EXT_INT_MAC = MacAddress.valueOf("56:e6:30:a6:8c:e5"); |
| 41 | public static final MacAddress PHY_ROUTER_MAC = MacAddress.valueOf("00:00:00:00:01:01"); |
Hyunsun Moon | b974fca | 2016-06-30 21:20:39 -0700 | [diff] [blame] | 42 | |
| 43 | public static final Ip4Address DNS_SERVER_IP = Ip4Address.valueOf("8.8.8.8"); |
| 44 | public static final IpPrefix IP_PREFIX_ANY = Ip4Prefix.valueOf("0.0.0.0/0"); |
| 45 | public static final int DHCP_INFINITE_LEASE = -1; |
| 46 | |
| 47 | public static final String NETWORK_ID = "networkId"; |
| 48 | public static final String PORT_ID = "portId"; |
| 49 | public static final String VXLAN_ID = "vxlanId"; |
| 50 | public static final String TENANT_ID = "tenantId"; |
| 51 | public static final String GATEWAY_IP = "gatewayIp"; |
| 52 | public static final String CREATE_TIME = "createTime"; |
| 53 | |
| 54 | public static final int SWITCHING_RULE_PRIORITY = 30000; |
| 55 | public static final int TUNNELTAG_RULE_PRIORITY = 30000; |
| 56 | public static final int ACL_RULE_PRIORITY = 30000; |
sangho | 6032f34 | 2016-07-07 14:32:03 +0900 | [diff] [blame^] | 57 | |
Hyunsun Moon | b974fca | 2016-06-30 21:20:39 -0700 | [diff] [blame] | 58 | } |