YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Laboratory |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 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.onosproject.ovsdb.controller; |
| 17 | |
| 18 | /** |
| 19 | * Ovsdb related constants. |
| 20 | */ |
| 21 | public 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 Moon | 1251e19 | 2016-06-07 16:57:05 -0700 | [diff] [blame] | 32 | /** Common column names. */ |
| 33 | public static final String UUID = "_uuid"; |
| 34 | |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 35 | /** Ovsdb database Open_vSwitch. */ |
| 36 | public static final String DATABASENAME = "Open_vSwitch"; |
| 37 | |
Hyunsun Moon | 1251e19 | 2016-06-07 16:57:05 -0700 | [diff] [blame] | 38 | /** Open_vSwitch table. */ |
| 39 | public static final String BRIDGES = "bridges"; |
| 40 | |
| 41 | /** Bridge table. */ |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 42 | public static final String BRIDGE = "Bridge"; |
Hyunsun Moon | 1251e19 | 2016-06-07 16:57:05 -0700 | [diff] [blame] | 43 | 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"; |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 47 | |
Hyunsun Moon | 1251e19 | 2016-06-07 16:57:05 -0700 | [diff] [blame] | 48 | /** Interface table. */ |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 49 | public static final String INTERFACE = "Interface"; |
Hyunsun Moon | 1251e19 | 2016-06-07 16:57:05 -0700 | [diff] [blame] | 50 | // type |
| 51 | public static final String TYPEVXLAN = "vxlan"; |
| 52 | // virtual machine identifiers |
| 53 | public static final String EXTERNAL_ID_INTERFACE_ID = "iface-id"; |
| 54 | public static final String EXTERNAL_ID_VM_MAC = "attached-mac"; |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 55 | |
Hyunsun Moon | 1251e19 | 2016-06-07 16:57:05 -0700 | [diff] [blame] | 56 | /** Controller table. */ |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 57 | public static final String CONTROLLER = "Controller"; |
| 58 | |
Hyunsun Moon | 1251e19 | 2016-06-07 16:57:05 -0700 | [diff] [blame] | 59 | /** Port table. */ |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 60 | public static final String PORT = "Port"; |
| 61 | |
| 62 | /** Ovsdb bridge name. */ |
Hyunsun Moon | 1251e19 | 2016-06-07 16:57:05 -0700 | [diff] [blame] | 63 | // TODO remove this particular bridge name from OVSDB provider |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 64 | public static final String INTEGRATION_BRIDGE = "br-int"; |
| 65 | |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 66 | /** Openflow version. */ |
| 67 | public static final String OPENFLOW13 = "OpenFlow13"; |
| 68 | |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 69 | /** Openflow port. */ |
Charles Chan | 45624b8 | 2015-08-24 00:29:20 +0800 | [diff] [blame] | 70 | public static final int OFPORT = 6653; |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 71 | |
| 72 | /** Ovsdb port. */ |
| 73 | public static final int OVSDBPORT = 6640; |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 74 | } |