Hyunsun Moon | 5401aaa | 2016-06-12 17:40:34 -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.opencord.cordvtn.api; |
| 17 | |
Hyunsun Moon | 1e88fef | 2016-08-04 14:00:35 -0700 | [diff] [blame] | 18 | import org.onlab.packet.Ip4Address; |
Hyunsun Moon | 81a1356 | 2016-08-04 13:48:08 -0700 | [diff] [blame] | 19 | import org.onlab.packet.TpPort; |
| 20 | |
Hyunsun Moon | 5401aaa | 2016-06-12 17:40:34 -0700 | [diff] [blame] | 21 | /** |
| 22 | * Provides constants used in CORD VTN services. |
| 23 | */ |
| 24 | public final class Constants { |
| 25 | |
| 26 | private Constants() { |
| 27 | } |
| 28 | |
| 29 | public static final String CORDVTN_APP_ID = "org.opencord.vtn"; |
| 30 | |
| 31 | public static final String ERROR_XOS_ACCESS = "XOS access is not configured"; |
| 32 | public static final String ERROR_OPENSTACK_ACCESS = "OpenStack access is not configured"; |
| 33 | public static final String MSG_OK = "OK"; |
| 34 | public static final String MSG_NO = "NO"; |
| 35 | |
Hyunsun Moon | 5401aaa | 2016-06-12 17:40:34 -0700 | [diff] [blame] | 36 | public static final String DEFAULT_TUNNEL = "vxlan"; |
Hyunsun Moon | 81a1356 | 2016-08-04 13:48:08 -0700 | [diff] [blame] | 37 | public static final String INTEGRATION_BRIDGE = "br-int"; |
Hyunsun Moon | 1e88fef | 2016-08-04 14:00:35 -0700 | [diff] [blame] | 38 | public static final String NOT_APPLICABLE = "N/A"; |
Hyunsun Moon | 81a1356 | 2016-08-04 13:48:08 -0700 | [diff] [blame] | 39 | |
| 40 | public static final int OF_PORT = 6653; |
| 41 | public static final TpPort OVSDB_PORT = TpPort.tpPort(6640); |
Hyunsun Moon | 1e88fef | 2016-08-04 14:00:35 -0700 | [diff] [blame] | 42 | public static final Ip4Address DEFAULT_DNS = Ip4Address.valueOf("8.8.8.8"); |
| 43 | public static final int DHCP_INFINITE_LEASE = -1; |
Hyunsun Moon | 5401aaa | 2016-06-12 17:40:34 -0700 | [diff] [blame] | 44 | } |