blob: 9fd3b2c26c183c7e85f9dcd9085a4690dcf3f18e [file] [log] [blame]
Hyunsun Moon5401aaa2016-06-12 17:40:34 -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 */
16package org.opencord.cordvtn.api;
17
Hyunsun Moon1e88fef2016-08-04 14:00:35 -070018import org.onlab.packet.Ip4Address;
Hyunsun Moon81a13562016-08-04 13:48:08 -070019import org.onlab.packet.TpPort;
20
Hyunsun Moon5401aaa2016-06-12 17:40:34 -070021/**
22 * Provides constants used in CORD VTN services.
23 */
24public 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 Moon5401aaa2016-06-12 17:40:34 -070036 public static final String DEFAULT_TUNNEL = "vxlan";
Hyunsun Moon81a13562016-08-04 13:48:08 -070037 public static final String INTEGRATION_BRIDGE = "br-int";
Hyunsun Moon1e88fef2016-08-04 14:00:35 -070038 public static final String NOT_APPLICABLE = "N/A";
Hyunsun Moon81a13562016-08-04 13:48:08 -070039
40 public static final int OF_PORT = 6653;
41 public static final TpPort OVSDB_PORT = TpPort.tpPort(6640);
Hyunsun Moon1e88fef2016-08-04 14:00:35 -070042 public static final Ip4Address DEFAULT_DNS = Ip4Address.valueOf("8.8.8.8");
43 public static final int DHCP_INFINITE_LEASE = -1;
Hyunsun Moon5401aaa2016-06-12 17:40:34 -070044}