blob: bf1e5136b17770cbc77796781638b4e5b239f730 [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";
44 // other configs
45 public static final String DATAPATH_ID = "datapath-id";
46 public static final String DISABLE_INBAND = "disable-in-band";
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080047
Hyunsun Moondd14e8e2016-06-09 16:17:32 -070048 /** Port table. */
49 public static final String PORT = "Port";
50 public static final String INTERFACES = "interfaces";
51
Hyunsun Moon1251e192016-06-07 16:57:05 -070052 /** Interface table. */
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080053 public static final String INTERFACE = "Interface";
Hyunsun Moon1251e192016-06-07 16:57:05 -070054 // type
55 public static final String TYPEVXLAN = "vxlan";
56 // virtual machine identifiers
57 public static final String EXTERNAL_ID_INTERFACE_ID = "iface-id";
58 public static final String EXTERNAL_ID_VM_MAC = "attached-mac";
Hyunsun Moondd14e8e2016-06-09 16:17:32 -070059 // tunnel interface options
60 public static final String TUNNEL_LOCAL_IP = "local_ip";
61 public static final String TUNNEL_REMOTE_IP = "remote_ip";
62 public static final String TUNNEL_KEY = "key";
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080063
Hyunsun Moon1251e192016-06-07 16:57:05 -070064 /** Controller table. */
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080065 public static final String CONTROLLER = "Controller";
66
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080067 /** Ovsdb bridge name. */
Hyunsun Moon1251e192016-06-07 16:57:05 -070068 // TODO remove this particular bridge name from OVSDB provider
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080069 public static final String INTEGRATION_BRIDGE = "br-int";
70
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080071 /** Openflow version. */
72 public static final String OPENFLOW13 = "OpenFlow13";
73
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080074 /** Openflow port. */
Charles Chan45624b82015-08-24 00:29:20 +080075 public static final int OFPORT = 6653;
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080076
77 /** Ovsdb port. */
78 public static final int OVSDBPORT = 6640;
YuanyouZhangd06bb6b2015-08-05 16:59:07 +080079}