public interface OvsdbClientService extends OvsdbRpc
| Modifier and Type | Method and Description |
|---|---|
boolean |
createBridge(OvsdbBridge ovsdbBridge)
Creates a bridge with a given bridge description.
|
void |
createBridge(String bridgeName)
Deprecated.
version 1.7.0 - Hummingbird
|
boolean |
createBridge(String bridgeName,
String dpid,
List<org.onosproject.net.behaviour.ControllerInfo> controllers)
Deprecated.
version 1.7.0 - Hummingbird
|
void |
createBridge(String bridgeName,
String dpid,
String exPortName)
Deprecated.
version 1.7.0 - Hummingbird
|
boolean |
createInterface(String bridgeName,
OvsdbInterface ovsdbIface)
Creates an interface with a given OVSDB interface description.
|
boolean |
createMirror(String bridgeName,
OvsdbMirror mirror)
Creates a mirror port.
|
void |
createPort(String bridgeName,
String portName)
Creates a port.
|
boolean |
createTunnel(String bridgeName,
String portName,
String tunnelType,
Map<String,String> options)
Deprecated.
version 1.7.0 - Hummingbird
|
void |
disconnect()
Disconnects the OVSDB server.
|
void |
dropBridge(String bridgeName)
Drops a bridge.
|
boolean |
dropInterface(String ifaceName)
Removes an interface with the supplied interface name.
|
void |
dropMirror(org.onosproject.net.behaviour.MirroringName mirroringName)
Drops the configuration for mirror.
|
void |
dropPort(String bridgeName,
String portName)
Drops a port.
|
void |
dropTunnel(org.onlab.packet.IpAddress srcIp,
org.onlab.packet.IpAddress dstIp)
Deprecated.
version 1.7.0 - Hummingbird
|
Set<OvsdbBridge> |
getBridges()
Gets bridges of node.
|
String |
getBridgeUuid(String bridgeName)
Gets the Bridge uuid.
|
Set<org.onosproject.net.behaviour.ControllerInfo> |
getControllers(org.onosproject.net.DeviceId openflowDeviceId)
Gets controllers of node.
|
DatabaseSchema |
getDatabaseSchema(String dbName)
Gets the OVSDB database schema from local.
|
Set<OvsdbPort> |
getLocalPorts(Iterable<String> ifaceids)
Gets OVSDB local ports.
|
Set<org.onosproject.net.behaviour.MirroringStatistics> |
getMirroringStatistics(org.onosproject.net.DeviceId deviceId)
Gets mirroring statistics of the device.
|
String |
getMirrorUuid(String mirrorName)
Gets the Mirror uuid.
|
com.google.common.util.concurrent.ListenableFuture<DatabaseSchema> |
getOvsdbSchema(String dbName)
Gets the OVSDB database schema.
|
Set<OvsdbPort> |
getPorts()
Gets ports of bridge.
|
String |
getPortUuid(String portName,
String bridgeUuid)
Gets the Port uuid.
|
Row |
getRow(String dbName,
String tableName,
String uuid)
Gets the OVSDB row from local OVSDB store.
|
boolean |
isConnected()
Checks if the node is still connected.
|
org.onosproject.net.behaviour.ControllerInfo |
localController()
Returns local controller information.
|
com.google.common.util.concurrent.ListenableFuture<TableUpdates> |
monitorTables(String dbName,
String id)
Gets the OVSDB table updates.
|
OvsdbNodeId |
nodeId()
Gets the node identifier.
|
void |
removeRow(String dbName,
String tableName,
String uuid)
Removes the OVSDB row from local OVSDB store.
|
void |
setControllersWithDeviceId(org.onosproject.net.DeviceId deviceId,
List<org.onosproject.net.behaviour.ControllerInfo> controllers)
Sets the Controllers for the specified device.
|
void |
updateOvsdbStore(String dbName,
String tableName,
String uuid,
Row row)
Updates the local OVSDB store.
|
OvsdbNodeId nodeId()
boolean createMirror(String bridgeName, OvsdbMirror mirror)
bridgeName - the name of the bridgemirror - the OVSDB mirror descriptionString getMirrorUuid(String mirrorName)
mirrorName - mirror nameSet<org.onosproject.net.behaviour.MirroringStatistics> getMirroringStatistics(org.onosproject.net.DeviceId deviceId)
deviceId - target device idvoid dropMirror(org.onosproject.net.behaviour.MirroringName mirroringName)
mirroringName - name of mirror to drop@Deprecated boolean createTunnel(String bridgeName, String portName, String tunnelType, Map<String,String> options)
bridgeName - bridge nameportName - port nametunnelType - tunnel typeoptions - tunnel options@Deprecated void dropTunnel(org.onlab.packet.IpAddress srcIp, org.onlab.packet.IpAddress dstIp)
srcIp - source IP addressdstIp - destination IP addressboolean createInterface(String bridgeName, OvsdbInterface ovsdbIface)
bridgeName - bridge nameovsdbIface - ovsdb interface descriptionboolean dropInterface(String ifaceName)
ifaceName - interface name@Deprecated void createBridge(String bridgeName)
bridgeName - bridge name@Deprecated void createBridge(String bridgeName, String dpid, String exPortName)
bridgeName - bridge namedpid - data path idexPortName - external port name@Deprecated boolean createBridge(String bridgeName, String dpid, List<org.onosproject.net.behaviour.ControllerInfo> controllers)
bridgeName - bridge namedpid - data path idcontrollers - controllersboolean createBridge(OvsdbBridge ovsdbBridge)
ovsdbBridge - ovsdb bridge descriptionvoid dropBridge(String bridgeName)
bridgeName - bridge nameSet<OvsdbBridge> getBridges()
Set<org.onosproject.net.behaviour.ControllerInfo> getControllers(org.onosproject.net.DeviceId openflowDeviceId)
openflowDeviceId - target device idorg.onosproject.net.behaviour.ControllerInfo localController()
void setControllersWithDeviceId(org.onosproject.net.DeviceId deviceId,
List<org.onosproject.net.behaviour.ControllerInfo> controllers)
This method will replace the existing controller list with the new controller list.
deviceId - device id (likely Openflow device)controllers - list of controllersvoid createPort(String bridgeName, String portName)
bridgeName - bridge nameportName - port namevoid dropPort(String bridgeName, String portName)
bridgeName - bridge nameportName - port nameSet<OvsdbPort> getPorts()
boolean isConnected()
String getBridgeUuid(String bridgeName)
bridgeName - bridge nameString getPortUuid(String portName, String bridgeUuid)
portName - port namebridgeUuid - bridge uuidcom.google.common.util.concurrent.ListenableFuture<DatabaseSchema> getOvsdbSchema(String dbName)
dbName - database namecom.google.common.util.concurrent.ListenableFuture<TableUpdates> monitorTables(String dbName, String id)
dbName - database nameid - random uuidDatabaseSchema getDatabaseSchema(String dbName)
dbName - database nameRow getRow(String dbName, String tableName, String uuid)
dbName - database nametableName - table nameuuid - row uuidvoid removeRow(String dbName, String tableName, String uuid)
dbName - database nametableName - table nameuuid - row uuidvoid updateOvsdbStore(String dbName, String tableName, String uuid, Row row)
dbName - database nametableName - table nameuuid - row uuidrow - OVSDB rowSet<OvsdbPort> getLocalPorts(Iterable<String> ifaceids)
ifaceids - the ifaceid that neededvoid disconnect()