blob: bee5734a094349ca02c6bef5482fba4efaf8907a [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 Moon81a13562016-08-04 13:48:08 -070018import org.onlab.packet.TpPort;
19
Hyunsun Moon5401aaa2016-06-12 17:40:34 -070020/**
21 * Provides constants used in CORD VTN services.
22 */
23public final class Constants {
24
25 private Constants() {
26 }
27
28 public static final String CORDVTN_APP_ID = "org.opencord.vtn";
29
30 public static final String ERROR_XOS_ACCESS = "XOS access is not configured";
31 public static final String ERROR_OPENSTACK_ACCESS = "OpenStack access is not configured";
32 public static final String MSG_OK = "OK";
33 public static final String MSG_NO = "NO";
34
Hyunsun Moon5401aaa2016-06-12 17:40:34 -070035 public static final String DEFAULT_TUNNEL = "vxlan";
Hyunsun Moon81a13562016-08-04 13:48:08 -070036 public static final String INTEGRATION_BRIDGE = "br-int";
Hyunsun Moonfb417942016-06-23 14:48:20 -070037 public static final String VPORT_PREFIX = "tap";
Hyunsun Moon81a13562016-08-04 13:48:08 -070038
39 public static final int OF_PORT = 6653;
40 public static final TpPort OVSDB_PORT = TpPort.tpPort(6640);
Hyunsun Moon5401aaa2016-06-12 17:40:34 -070041}