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 | */ |
| 16 | package org.onosproject.openstacknetworking.switching; |
| 17 | |
| 18 | import org.onlab.packet.Ip4Address; |
| 19 | import org.onlab.packet.Ip4Prefix; |
| 20 | import org.onlab.packet.IpPrefix; |
| 21 | |
| 22 | /** |
| 23 | * Provides constants used in OpenStack node services. |
| 24 | */ |
| 25 | public final class Constants { |
| 26 | |
| 27 | private Constants() { |
| 28 | } |
| 29 | |
| 30 | public static final String APP_ID = "org.onosproject.openstackswitching"; |
| 31 | |
| 32 | public static final String PORTNAME_PREFIX_VM = "tap"; |
| 33 | public static final String PORTNAME_PREFIX_ROUTER = "qr-"; |
| 34 | public static final String PORTNAME_PREFIX_TUNNEL = "vxlan"; |
| 35 | |
| 36 | // TODO remove this |
| 37 | public static final String ROUTER_INTERFACE = "network:router_interface"; |
| 38 | public static final String DEVICE_OWNER_GATEWAY = "network:router_gateway"; |
| 39 | |
| 40 | public static final Ip4Address DNS_SERVER_IP = Ip4Address.valueOf("8.8.8.8"); |
| 41 | public static final IpPrefix IP_PREFIX_ANY = Ip4Prefix.valueOf("0.0.0.0/0"); |
| 42 | public static final int DHCP_INFINITE_LEASE = -1; |
| 43 | |
| 44 | public static final String NETWORK_ID = "networkId"; |
| 45 | public static final String PORT_ID = "portId"; |
| 46 | public static final String VXLAN_ID = "vxlanId"; |
| 47 | public static final String TENANT_ID = "tenantId"; |
| 48 | public static final String GATEWAY_IP = "gatewayIp"; |
| 49 | public static final String CREATE_TIME = "createTime"; |
| 50 | |
| 51 | public static final int SWITCHING_RULE_PRIORITY = 30000; |
| 52 | public static final int TUNNELTAG_RULE_PRIORITY = 30000; |
| 53 | public static final int ACL_RULE_PRIORITY = 30000; |
| 54 | } |