blob: aea0845be7919e7763402af2afe3446a58df1ed0 [file] [log] [blame]
YuanyouZhangd06bb6b2015-08-05 16:59:07 +08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
YuanyouZhangd06bb6b2015-08-05 16:59:07 +08003 *
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.onosproject.ovsdb.controller;
17
18/**
19 * Ovsdb related constants.
20 */
21public final class OvsdbConstant {
22
23 /**
24 * Default constructor.
25 *
26 * The constructor is private to prevent creating an instance of this
27 * utility class.
28 */
29 private OvsdbConstant() {
30 }
31
Hyunsun Moon1251e192016-06-07 16:57:05 -070032 /** Common column names. */
33 public static final String UUID = "_uuid";
34
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080035 /** Ovsdb database Open_vSwitch. */
36 public static final String DATABASENAME = "Open_vSwitch";
37
Hyunsun Moon1251e192016-06-07 16:57:05 -070038 /** Open_vSwitch table. */
39 public static final String BRIDGES = "bridges";
40
41 /** Bridge table. */
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080042 public static final String BRIDGE = "Bridge";
Hyunsun Moon1251e192016-06-07 16:57:05 -070043 public static final String PORTS = "ports";
Pier Ventref5d72362016-07-17 12:02:14 +020044 public static final String MIRRORS = "mirrors";
Hyunsun Moon1251e192016-06-07 16:57:05 -070045 // other configs
46 public static final String DATAPATH_ID = "datapath-id";
47 public static final String DISABLE_INBAND = "disable-in-band";
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080048
Hyunsun Moondd14e8e2016-06-09 16:17:32 -070049 /** Port table. */
50 public static final String PORT = "Port";
51 public static final String INTERFACES = "interfaces";
52
Hyunsun Moon1251e192016-06-07 16:57:05 -070053 /** Interface table. */
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080054 public static final String INTERFACE = "Interface";
Hyunsun Moon1251e192016-06-07 16:57:05 -070055 // type
56 public static final String TYPEVXLAN = "vxlan";
57 // virtual machine identifiers
58 public static final String EXTERNAL_ID_INTERFACE_ID = "iface-id";
59 public static final String EXTERNAL_ID_VM_MAC = "attached-mac";
Hyunsun Moondd14e8e2016-06-09 16:17:32 -070060 // tunnel interface options
61 public static final String TUNNEL_LOCAL_IP = "local_ip";
62 public static final String TUNNEL_REMOTE_IP = "remote_ip";
63 public static final String TUNNEL_KEY = "key";
Hyunsun Moon89478662016-06-09 17:52:34 -070064 // patch interface options
65 public static final String PATCH_PEER = "peer";
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080066
Hyunsun Moon1251e192016-06-07 16:57:05 -070067 /** Controller table. */
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080068 public static final String CONTROLLER = "Controller";
69
Pier Ventref5d72362016-07-17 12:02:14 +020070 /** Mirror table. */
71 public static final String MIRROR = "Mirror";
72
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080073 /** Ovsdb bridge name. */
Hyunsun Moon1251e192016-06-07 16:57:05 -070074 // TODO remove this particular bridge name from OVSDB provider
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080075 public static final String INTEGRATION_BRIDGE = "br-int";
76
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080077 /** Openflow version. */
78 public static final String OPENFLOW13 = "OpenFlow13";
79
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080080 /** Openflow port. */
Charles Chan45624b82015-08-24 00:29:20 +080081 public static final int OFPORT = 6653;
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080082
83 /** Ovsdb port. */
84 public static final int OVSDBPORT = 6640;
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080085}