CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Laboratory |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +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 | |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 18 | import com.google.common.util.concurrent.ListenableFuture; |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 19 | import org.onlab.packet.IpAddress; |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 20 | import org.onosproject.net.DeviceId; |
Frank Wang | e11a98d | 2016-10-26 17:04:03 +0800 | [diff] [blame] | 21 | import org.onosproject.net.PortNumber; |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 22 | import org.onosproject.net.behaviour.ControllerInfo; |
Pier Ventre | f5d7236 | 2016-07-17 12:02:14 +0200 | [diff] [blame] | 23 | import org.onosproject.net.behaviour.MirroringStatistics; |
| 24 | import org.onosproject.net.behaviour.MirroringName; |
Frank Wang | e11a98d | 2016-10-26 17:04:03 +0800 | [diff] [blame] | 25 | import org.onosproject.net.behaviour.QosId; |
| 26 | import org.onosproject.net.behaviour.QueueId; |
Jonathan Hart | 51539b8 | 2015-10-29 09:53:04 -0700 | [diff] [blame] | 27 | import org.onosproject.ovsdb.rfc.jsonrpc.OvsdbRpc; |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 28 | import org.onosproject.ovsdb.rfc.message.TableUpdates; |
| 29 | import org.onosproject.ovsdb.rfc.notation.Row; |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 30 | import org.onosproject.ovsdb.rfc.schema.DatabaseSchema; |
| 31 | |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 32 | import java.util.List; |
Hyunsun Moon | 646d8c4 | 2015-10-08 20:32:44 -0700 | [diff] [blame] | 33 | import java.util.Map; |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 34 | import java.util.Set; |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 35 | |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 36 | /** |
| 37 | * Represents to provider facing side of a node. |
| 38 | */ |
Jonathan Hart | 51539b8 | 2015-10-29 09:53:04 -0700 | [diff] [blame] | 39 | public interface OvsdbClientService extends OvsdbRpc { |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 40 | /** |
| 41 | * Gets the node identifier. |
| 42 | * |
| 43 | * @return node identifier |
| 44 | */ |
| 45 | OvsdbNodeId nodeId(); |
| 46 | |
| 47 | /** |
Pier Ventre | f5d7236 | 2016-07-17 12:02:14 +0200 | [diff] [blame] | 48 | * Creates a mirror port. Mirrors the traffic |
| 49 | * that goes to selectDstPort or comes from |
| 50 | * selectSrcPort or packets containing selectVlan |
| 51 | * to mirrorPort or to all ports that trunk mirrorVlan. |
| 52 | * |
| 53 | * @param bridgeName the name of the bridge |
| 54 | * @param mirror the OVSDB mirror description |
| 55 | * @return true if mirror creation is successful, false otherwise |
| 56 | */ |
| 57 | boolean createMirror(String bridgeName, OvsdbMirror mirror); |
| 58 | |
| 59 | /** |
| 60 | * Gets the Mirror uuid. |
| 61 | * |
| 62 | * @param mirrorName mirror name |
| 63 | * @return mirror uuid, empty if no uuid is found |
| 64 | */ |
| 65 | String getMirrorUuid(String mirrorName); |
| 66 | |
| 67 | /** |
| 68 | * Gets mirroring statistics of the device. |
| 69 | * |
| 70 | * @param deviceId target device id |
| 71 | * @return set of mirroring statistics; empty if no mirror is found |
| 72 | */ |
| 73 | Set<MirroringStatistics> getMirroringStatistics(DeviceId deviceId); |
| 74 | |
| 75 | /** |
| 76 | * Drops the configuration for mirror. |
| 77 | * |
Ray Milkey | ef79434 | 2016-11-09 16:20:29 -0800 | [diff] [blame] | 78 | * @param mirroringName name of mirror to drop |
Pier Ventre | f5d7236 | 2016-07-17 12:02:14 +0200 | [diff] [blame] | 79 | */ |
| 80 | void dropMirror(MirroringName mirroringName); |
| 81 | |
| 82 | /** |
Frank Wang | e11a98d | 2016-10-26 17:04:03 +0800 | [diff] [blame] | 83 | * apply qos to port. |
| 84 | * |
| 85 | * @param portNumber port identifier |
| 86 | * @param qosName the qos name |
| 87 | */ |
| 88 | void applyQos(PortNumber portNumber, String qosName); |
| 89 | |
| 90 | /** |
| 91 | * Creates a qos port. |
| 92 | * |
| 93 | * @param portNumber port identifier |
| 94 | */ |
| 95 | void removeQos(PortNumber portNumber); |
| 96 | |
| 97 | /** |
| 98 | * Creates a qos. associates with queue to |
| 99 | * provide the ability of limit the rate of different flows |
| 100 | * depend on itself priority. |
| 101 | * |
| 102 | * @param ovsdbQos the OVSDB Qos |
| 103 | * @return true if qos creation is successful, false otherwise |
| 104 | */ |
| 105 | boolean createQos(OvsdbQos ovsdbQos); |
| 106 | |
| 107 | /** |
| 108 | * Drops the configuration for qos. |
| 109 | * |
| 110 | * @param qosId qos identifier |
| 111 | */ |
| 112 | void dropQos(QosId qosId); |
| 113 | |
| 114 | /** |
| 115 | * Gets a qos of node. |
| 116 | * @param qosId qos identifier |
| 117 | * @return null if no qos is find |
| 118 | */ |
| 119 | OvsdbQos getQos(QosId qosId); |
| 120 | |
| 121 | /** |
| 122 | * Gets qoses of node. |
| 123 | * |
| 124 | * @return set of qoses; empty if no qos is find |
| 125 | */ |
| 126 | Set<OvsdbQos> getQoses(); |
| 127 | |
| 128 | /** |
| 129 | * Creates queues. limits the rate of each flow |
| 130 | * depend on itself priority. |
| 131 | * |
| 132 | * @param queue the OVSDB queue description |
| 133 | * @return true if queue creation is successful, false otherwise |
| 134 | */ |
| 135 | boolean createQueue(OvsdbQueue queue); |
| 136 | |
| 137 | /** |
| 138 | * Drops the configuration for queue. |
| 139 | * |
| 140 | * @param queueId queue identifier |
| 141 | */ |
| 142 | void dropQueue(QueueId queueId); |
| 143 | |
| 144 | /** |
| 145 | * Gets a queue of node. |
| 146 | * @param queueId the queue identifier |
| 147 | * @return null if no queue is find |
| 148 | */ |
| 149 | OvsdbQueue getQueue(QueueId queueId); |
| 150 | |
| 151 | /** |
| 152 | * Gets queues of node. |
| 153 | * |
| 154 | * @return set of queues; empty if no queue is find |
| 155 | */ |
| 156 | Set<OvsdbQueue> getQueues(); |
| 157 | |
| 158 | /** |
Hyunsun Moon | 646d8c4 | 2015-10-08 20:32:44 -0700 | [diff] [blame] | 159 | * Creates a tunnel port with given options. |
| 160 | * |
Hyunsun Moon | dd14e8e | 2016-06-09 16:17:32 -0700 | [diff] [blame] | 161 | * @deprecated version 1.7.0 - Hummingbird |
Hyunsun Moon | 646d8c4 | 2015-10-08 20:32:44 -0700 | [diff] [blame] | 162 | * @param bridgeName bridge name |
| 163 | * @param portName port name |
| 164 | * @param tunnelType tunnel type |
| 165 | * @param options tunnel options |
| 166 | * @return true if tunnel creation is successful, false otherwise |
| 167 | */ |
Hyunsun Moon | dd14e8e | 2016-06-09 16:17:32 -0700 | [diff] [blame] | 168 | @Deprecated |
| 169 | boolean createTunnel(String bridgeName, String portName, String tunnelType, |
| 170 | Map<String, String> options); |
Hyunsun Moon | 646d8c4 | 2015-10-08 20:32:44 -0700 | [diff] [blame] | 171 | |
| 172 | /** |
BitOhenry | 264f35a | 2015-11-03 20:58:39 +0800 | [diff] [blame] | 173 | * Drops the configuration for tunnel. |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 174 | * |
Hyunsun Moon | dd14e8e | 2016-06-09 16:17:32 -0700 | [diff] [blame] | 175 | * @deprecated version 1.7.0 - Hummingbird |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 176 | * @param srcIp source IP address |
| 177 | * @param dstIp destination IP address |
| 178 | */ |
Hyunsun Moon | dd14e8e | 2016-06-09 16:17:32 -0700 | [diff] [blame] | 179 | @Deprecated |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 180 | void dropTunnel(IpAddress srcIp, IpAddress dstIp); |
| 181 | |
| 182 | /** |
Hyunsun Moon | dd14e8e | 2016-06-09 16:17:32 -0700 | [diff] [blame] | 183 | * Creates an interface with a given OVSDB interface description. |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 184 | * |
Hyunsun Moon | dd14e8e | 2016-06-09 16:17:32 -0700 | [diff] [blame] | 185 | * @param bridgeName bridge name |
| 186 | * @param ovsdbIface ovsdb interface description |
| 187 | * @return true if interface creation is successful, false otherwise |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 188 | */ |
Hyunsun Moon | dd14e8e | 2016-06-09 16:17:32 -0700 | [diff] [blame] | 189 | boolean createInterface(String bridgeName, OvsdbInterface ovsdbIface); |
| 190 | |
| 191 | /** |
| 192 | * Removes an interface with the supplied interface name. |
| 193 | * |
| 194 | * @param ifaceName interface name |
| 195 | * @return true if interface creation is successful, false otherwise |
| 196 | */ |
| 197 | boolean dropInterface(String ifaceName); |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 198 | |
| 199 | /** |
| 200 | * Creates a bridge. |
| 201 | * |
Hyunsun Moon | 1251e19 | 2016-06-07 16:57:05 -0700 | [diff] [blame] | 202 | * @deprecated version 1.7.0 - Hummingbird |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 203 | * @param bridgeName bridge name |
| 204 | */ |
Hyunsun Moon | 1251e19 | 2016-06-07 16:57:05 -0700 | [diff] [blame] | 205 | @Deprecated |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 206 | void createBridge(String bridgeName); |
| 207 | |
| 208 | /** |
lishuai | 6c56f5e | 2015-11-17 16:38:19 +0800 | [diff] [blame] | 209 | * Creates a bridge. |
| 210 | * |
Hyunsun Moon | 1251e19 | 2016-06-07 16:57:05 -0700 | [diff] [blame] | 211 | * @deprecated version 1.7.0 - Hummingbird |
lishuai | 6c56f5e | 2015-11-17 16:38:19 +0800 | [diff] [blame] | 212 | * @param bridgeName bridge name |
| 213 | * @param dpid data path id |
| 214 | * @param exPortName external port name |
| 215 | */ |
Hyunsun Moon | 1251e19 | 2016-06-07 16:57:05 -0700 | [diff] [blame] | 216 | @Deprecated |
lishuai | 6c56f5e | 2015-11-17 16:38:19 +0800 | [diff] [blame] | 217 | void createBridge(String bridgeName, String dpid, String exPortName); |
| 218 | |
| 219 | /** |
Hyunsun Moon | 646d8c4 | 2015-10-08 20:32:44 -0700 | [diff] [blame] | 220 | * Creates a bridge with given name and dpid. |
| 221 | * Sets the bridge's controller with given controllers. |
| 222 | * |
Hyunsun Moon | 1251e19 | 2016-06-07 16:57:05 -0700 | [diff] [blame] | 223 | * @deprecated version 1.7.0 - Hummingbird |
Hyunsun Moon | 646d8c4 | 2015-10-08 20:32:44 -0700 | [diff] [blame] | 224 | * @param bridgeName bridge name |
| 225 | * @param dpid data path id |
| 226 | * @param controllers controllers |
| 227 | * @return true if bridge creation is successful, false otherwise |
| 228 | */ |
Hyunsun Moon | 1251e19 | 2016-06-07 16:57:05 -0700 | [diff] [blame] | 229 | @Deprecated |
Hyunsun Moon | 646d8c4 | 2015-10-08 20:32:44 -0700 | [diff] [blame] | 230 | boolean createBridge(String bridgeName, String dpid, List<ControllerInfo> controllers); |
| 231 | |
| 232 | /** |
Hyunsun Moon | 1251e19 | 2016-06-07 16:57:05 -0700 | [diff] [blame] | 233 | * Creates a bridge with a given bridge description. |
| 234 | * |
| 235 | * @param ovsdbBridge ovsdb bridge description |
| 236 | * @return true if bridge creation is successful, otherwise false |
| 237 | */ |
| 238 | boolean createBridge(OvsdbBridge ovsdbBridge); |
| 239 | |
| 240 | /** |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 241 | * Drops a bridge. |
| 242 | * |
| 243 | * @param bridgeName bridge name |
| 244 | */ |
| 245 | void dropBridge(String bridgeName); |
| 246 | |
| 247 | /** |
BitOhenry | 264f35a | 2015-11-03 20:58:39 +0800 | [diff] [blame] | 248 | * Gets bridges of node. |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 249 | * |
| 250 | * @return set of bridges; empty if no bridge is find |
| 251 | */ |
| 252 | Set<OvsdbBridge> getBridges(); |
| 253 | |
| 254 | /** |
BitOhenry | 264f35a | 2015-11-03 20:58:39 +0800 | [diff] [blame] | 255 | * Gets controllers of node. |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 256 | * |
Brian O'Connor | 5251562 | 2015-10-09 17:03:44 -0700 | [diff] [blame] | 257 | * @param openflowDeviceId target device id |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 258 | * @return set of controllers; empty if no controller is find |
| 259 | */ |
| 260 | Set<ControllerInfo> getControllers(DeviceId openflowDeviceId); |
| 261 | |
| 262 | /** |
Hyunsun Moon | 1251e19 | 2016-06-07 16:57:05 -0700 | [diff] [blame] | 263 | * Returns local controller information. |
| 264 | * The connection is a TCP connection to the local ONOS instance's IP |
| 265 | * and the default OpenFlow port. |
| 266 | * |
| 267 | * @return local controller |
| 268 | */ |
| 269 | ControllerInfo localController(); |
| 270 | |
| 271 | /** |
Brian O'Connor | 6ee8aa3 | 2015-10-09 16:07:42 -0700 | [diff] [blame] | 272 | * Sets the Controllers for the specified device. |
Brian O'Connor | 5251562 | 2015-10-09 17:03:44 -0700 | [diff] [blame] | 273 | * <p> |
Brian O'Connor | 6ee8aa3 | 2015-10-09 16:07:42 -0700 | [diff] [blame] | 274 | * This method will replace the existing controller list with the new controller |
| 275 | * list. |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 276 | * |
Brian O'Connor | 6ee8aa3 | 2015-10-09 16:07:42 -0700 | [diff] [blame] | 277 | * @param deviceId device id (likely Openflow device) |
| 278 | * @param controllers list of controllers |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 279 | */ |
| 280 | void setControllersWithDeviceId(DeviceId deviceId, List<ControllerInfo> controllers); |
| 281 | |
| 282 | /** |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 283 | * Creates a port. |
| 284 | * |
| 285 | * @param bridgeName bridge name |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 286 | * @param portName port name |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 287 | */ |
| 288 | void createPort(String bridgeName, String portName); |
| 289 | |
| 290 | /** |
| 291 | * Drops a port. |
| 292 | * |
| 293 | * @param bridgeName bridge name |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 294 | * @param portName port name |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 295 | */ |
| 296 | void dropPort(String bridgeName, String portName); |
| 297 | |
| 298 | /** |
BitOhenry | 264f35a | 2015-11-03 20:58:39 +0800 | [diff] [blame] | 299 | * Gets ports of bridge. |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 300 | * |
| 301 | * @return set of ports; empty if no ports is find |
| 302 | */ |
| 303 | Set<OvsdbPort> getPorts(); |
| 304 | |
| 305 | /** |
| 306 | * Checks if the node is still connected. |
| 307 | * |
| 308 | * @return true if the node is still connected |
| 309 | */ |
| 310 | boolean isConnected(); |
| 311 | |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 312 | /** |
| 313 | * Gets the Bridge uuid. |
| 314 | * |
| 315 | * @param bridgeName bridge name |
| 316 | * @return bridge uuid, empty if no uuid is find |
| 317 | */ |
| 318 | String getBridgeUuid(String bridgeName); |
| 319 | |
| 320 | /** |
| 321 | * Gets the Port uuid. |
| 322 | * |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 323 | * @param portName port name |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 324 | * @param bridgeUuid bridge uuid |
| 325 | * @return port uuid, empty if no uuid is find |
| 326 | */ |
| 327 | String getPortUuid(String portName, String bridgeUuid); |
| 328 | |
| 329 | /** |
BitOhenry | 3f28c68 | 2015-11-07 10:40:03 +0800 | [diff] [blame] | 330 | * Gets the OVSDB database schema. |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 331 | * |
| 332 | * @param dbName database name |
| 333 | * @return database schema |
| 334 | */ |
| 335 | ListenableFuture<DatabaseSchema> getOvsdbSchema(String dbName); |
| 336 | |
| 337 | /** |
BitOhenry | 3f28c68 | 2015-11-07 10:40:03 +0800 | [diff] [blame] | 338 | * Gets the OVSDB table updates. |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 339 | * |
| 340 | * @param dbName database name |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 341 | * @param id random uuid |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 342 | * @return table updates |
| 343 | */ |
| 344 | ListenableFuture<TableUpdates> monitorTables(String dbName, String id); |
| 345 | |
| 346 | /** |
BitOhenry | 3f28c68 | 2015-11-07 10:40:03 +0800 | [diff] [blame] | 347 | * Gets the OVSDB database schema from local. |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 348 | * |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 349 | * @param dbName database name |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 350 | * @return database schema |
| 351 | */ |
| 352 | DatabaseSchema getDatabaseSchema(String dbName); |
| 353 | |
| 354 | /** |
BitOhenry | 3f28c68 | 2015-11-07 10:40:03 +0800 | [diff] [blame] | 355 | * Gets the OVSDB row from local OVSDB store. |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 356 | * |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 357 | * @param dbName database name |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 358 | * @param tableName table name |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 359 | * @param uuid row uuid |
BitOhenry | 3f28c68 | 2015-11-07 10:40:03 +0800 | [diff] [blame] | 360 | * @return row OVSDB row |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 361 | */ |
| 362 | Row getRow(String dbName, String tableName, String uuid); |
| 363 | |
| 364 | /** |
BitOhenry | 3f28c68 | 2015-11-07 10:40:03 +0800 | [diff] [blame] | 365 | * Removes the OVSDB row from local OVSDB store. |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 366 | * |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 367 | * @param dbName database name |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 368 | * @param tableName table name |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 369 | * @param uuid row uuid |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 370 | */ |
| 371 | void removeRow(String dbName, String tableName, String uuid); |
| 372 | |
| 373 | /** |
BitOhenry | 3f28c68 | 2015-11-07 10:40:03 +0800 | [diff] [blame] | 374 | * Updates the local OVSDB store. |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 375 | * |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 376 | * @param dbName database name |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 377 | * @param tableName table name |
andrea | ed976a4 | 2015-10-05 14:38:25 -0700 | [diff] [blame] | 378 | * @param uuid row uuid |
BitOhenry | 3f28c68 | 2015-11-07 10:40:03 +0800 | [diff] [blame] | 379 | * @param row OVSDB row |
YuanyouZhang | d06bb6b | 2015-08-05 16:59:07 +0800 | [diff] [blame] | 380 | */ |
| 381 | void updateOvsdbStore(String dbName, String tableName, String uuid, Row row); |
| 382 | |
CNlucius | a66c397 | 2015-09-06 20:31:29 +0800 | [diff] [blame] | 383 | /** |
BitOhenry | 3f28c68 | 2015-11-07 10:40:03 +0800 | [diff] [blame] | 384 | * Gets OVSDB local ports. |
CNlucius | a66c397 | 2015-09-06 20:31:29 +0800 | [diff] [blame] | 385 | * |
| 386 | * @param ifaceids the ifaceid that needed |
BitOhenry | 3f28c68 | 2015-11-07 10:40:03 +0800 | [diff] [blame] | 387 | * @return OVSDB ports |
CNlucius | a66c397 | 2015-09-06 20:31:29 +0800 | [diff] [blame] | 388 | */ |
| 389 | Set<OvsdbPort> getLocalPorts(Iterable<String> ifaceids); |
Hyunsun Moon | 5fb20a5 | 2015-09-25 17:02:33 -0700 | [diff] [blame] | 390 | |
| 391 | /** |
BitOhenry | 3f28c68 | 2015-11-07 10:40:03 +0800 | [diff] [blame] | 392 | * Disconnects the OVSDB server. |
Hyunsun Moon | 5fb20a5 | 2015-09-25 17:02:33 -0700 | [diff] [blame] | 393 | */ |
| 394 | void disconnect(); |
CNlucius | 74fd494 | 2015-07-20 14:28:04 +0800 | [diff] [blame] | 395 | } |