public interface OvsdbClientService extends OvsdbRpc
| Modifier and Type | Method and Description |
|---|---|
void |
applyQos(org.onosproject.net.PortNumber portNumber,
java.lang.String qosName)
apply qos to port.
|
void |
bindQueues(org.onosproject.net.behaviour.QosId qosId,
java.util.Map<java.lang.Long,org.onosproject.net.behaviour.QueueDescription> queues)
Bind Queue to QoS.
|
boolean |
createBridge(OvsdbBridge ovsdbBridge)
Creates a bridge with a given bridge description.
|
boolean |
createInterface(java.lang.String bridgeName,
OvsdbInterface ovsdbIface)
Creates an interface with a given OVSDB interface description.
|
boolean |
createMirror(java.lang.String bridgeName,
OvsdbMirror mirror)
Creates a mirror port.
|
void |
createPort(java.lang.String bridgeName,
java.lang.String portName)
Creates a port.
|
boolean |
createQos(OvsdbQos ovsdbQos)
Creates a qos.
|
boolean |
createQueue(OvsdbQueue queue)
Creates queues.
|
void |
disconnect()
Disconnects the OVSDB server.
|
void |
dropBridge(java.lang.String bridgeName)
Drops a bridge.
|
boolean |
dropInterface(java.lang.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(java.lang.String bridgeName,
java.lang.String portName)
Drops a port.
|
void |
dropQos(org.onosproject.net.behaviour.QosId qosId)
Drops the configuration for qos.
|
void |
dropQueue(org.onosproject.net.behaviour.QueueId queueId)
Drops the configuration for queue.
|
java.util.Set<OvsdbBridge> |
getBridges()
Gets bridges of node.
|
java.lang.String |
getBridgeUuid(java.lang.String bridgeName)
Gets the Bridge uuid.
|
java.util.Set<org.onosproject.net.behaviour.ControllerInfo> |
getControllers(org.onosproject.net.DeviceId openflowDeviceId)
Gets controllers of node.
|
DatabaseSchema |
getDatabaseSchema(java.lang.String dbName)
Gets the OVSDB database schema from local.
|
java.util.Set<OvsdbPort> |
getLocalPorts(java.lang.Iterable<java.lang.String> ifaceids)
Gets OVSDB local ports.
|
java.util.Set<org.onosproject.net.behaviour.MirroringStatistics> |
getMirroringStatistics(org.onosproject.net.DeviceId deviceId)
Gets mirroring statistics of the device.
|
java.lang.String |
getMirrorUuid(java.lang.String mirrorName)
Gets the Mirror uuid.
|
com.google.common.util.concurrent.ListenableFuture<DatabaseSchema> |
getOvsdbSchema(java.lang.String dbName)
Gets the OVSDB database schema.
|
boolean |
getPortError(java.util.List<OvsdbPortName> portNames,
org.onosproject.net.DeviceId bridgeId)
Gets error status for the given portNames.
|
java.util.Set<OvsdbPort> |
getPorts()
Gets ports of bridge.
|
java.util.List<OvsdbPortName> |
getPorts(java.util.List<java.lang.String> portNames,
org.onosproject.net.DeviceId bridgeId)
Gets created ports for the particular bridgeId.
|
java.lang.String |
getPortUuid(java.lang.String portName,
java.lang.String bridgeUuid)
Gets the Port uuid.
|
OvsdbQos |
getQos(org.onosproject.net.behaviour.QosId qosId)
Gets a qos of node.
|
java.util.Set<OvsdbQos> |
getQoses()
Gets qoses of node.
|
OvsdbQueue |
getQueue(org.onosproject.net.behaviour.QueueId queueId)
Gets a queue of node.
|
java.util.Set<OvsdbQueue> |
getQueues()
Gets queues of node.
|
Row |
getRow(java.lang.String dbName,
java.lang.String tableName,
java.lang.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(java.lang.String dbName,
java.lang.String id)
Gets the OVSDB table updates.
|
OvsdbNodeId |
nodeId()
Gets the node identifier.
|
void |
removeQos(org.onosproject.net.PortNumber portNumber)
Creates a qos port.
|
void |
removeRow(java.lang.String dbName,
java.lang.String tableName,
java.lang.String uuid)
Removes the OVSDB row from local OVSDB store.
|
void |
setControllersWithDeviceId(org.onosproject.net.DeviceId deviceId,
java.util.List<org.onosproject.net.behaviour.ControllerInfo> controllers)
Sets the Controllers for the specified device.
|
void |
unbindQueues(org.onosproject.net.behaviour.QosId qosId,
java.util.List<java.lang.Long> queueKeys)
Unbind Queue from QoS.
|
void |
updateOvsdbStore(java.lang.String dbName,
java.lang.String tableName,
java.lang.String uuid,
Row row)
Updates the local OVSDB store.
|
OvsdbNodeId nodeId()
boolean createMirror(java.lang.String bridgeName,
OvsdbMirror mirror)
bridgeName - the name of the bridgemirror - the OVSDB mirror descriptionjava.lang.String getMirrorUuid(java.lang.String mirrorName)
mirrorName - mirror namejava.util.Set<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 dropvoid applyQos(org.onosproject.net.PortNumber portNumber,
java.lang.String qosName)
portNumber - port identifierqosName - the qos namevoid removeQos(org.onosproject.net.PortNumber portNumber)
portNumber - port identifierboolean createQos(OvsdbQos ovsdbQos)
ovsdbQos - the OVSDB Qosvoid dropQos(org.onosproject.net.behaviour.QosId qosId)
qosId - qos identifierOvsdbQos getQos(org.onosproject.net.behaviour.QosId qosId)
qosId - qos identifierjava.util.Set<OvsdbQos> getQoses()
void bindQueues(org.onosproject.net.behaviour.QosId qosId,
java.util.Map<java.lang.Long,org.onosproject.net.behaviour.QueueDescription> queues)
qosId - qos identifierqueues - the Queue key and Queue descriptionvoid unbindQueues(org.onosproject.net.behaviour.QosId qosId,
java.util.List<java.lang.Long> queueKeys)
qosId - qos identifierqueueKeys - queue keyboolean createQueue(OvsdbQueue queue)
queue - the OVSDB queue descriptionvoid dropQueue(org.onosproject.net.behaviour.QueueId queueId)
queueId - queue identifierOvsdbQueue getQueue(org.onosproject.net.behaviour.QueueId queueId)
queueId - the queue identifierjava.util.Set<OvsdbQueue> getQueues()
boolean createInterface(java.lang.String bridgeName,
OvsdbInterface ovsdbIface)
bridgeName - bridge nameovsdbIface - ovsdb interface descriptionboolean dropInterface(java.lang.String ifaceName)
ifaceName - interface nameboolean createBridge(OvsdbBridge ovsdbBridge)
ovsdbBridge - ovsdb bridge descriptionvoid dropBridge(java.lang.String bridgeName)
bridgeName - bridge namejava.util.Set<OvsdbBridge> getBridges()
java.util.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,
java.util.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(java.lang.String bridgeName,
java.lang.String portName)
bridgeName - bridge nameportName - port namevoid dropPort(java.lang.String bridgeName,
java.lang.String portName)
bridgeName - bridge nameportName - port namejava.util.Set<OvsdbPort> getPorts()
boolean isConnected()
java.lang.String getBridgeUuid(java.lang.String bridgeName)
bridgeName - bridge namejava.lang.String getPortUuid(java.lang.String portName,
java.lang.String bridgeUuid)
portName - port namebridgeUuid - bridge uuidcom.google.common.util.concurrent.ListenableFuture<DatabaseSchema> getOvsdbSchema(java.lang.String dbName)
dbName - database namecom.google.common.util.concurrent.ListenableFuture<TableUpdates> monitorTables(java.lang.String dbName, java.lang.String id)
dbName - database nameid - random uuidDatabaseSchema getDatabaseSchema(java.lang.String dbName)
dbName - database nameRow getRow(java.lang.String dbName, java.lang.String tableName, java.lang.String uuid)
dbName - database nametableName - table nameuuid - row uuidvoid removeRow(java.lang.String dbName,
java.lang.String tableName,
java.lang.String uuid)
dbName - database nametableName - table nameuuid - row uuidvoid updateOvsdbStore(java.lang.String dbName,
java.lang.String tableName,
java.lang.String uuid,
Row row)
dbName - database nametableName - table nameuuid - row uuidrow - OVSDB rowjava.util.Set<OvsdbPort> getLocalPorts(java.lang.Iterable<java.lang.String> ifaceids)
ifaceids - the ifaceid that neededvoid disconnect()
java.util.List<OvsdbPortName> getPorts(java.util.List<java.lang.String> portNames, org.onosproject.net.DeviceId bridgeId)
portNames - the portNames which needs to checked for createbridgeId - bridgeIdentifierboolean getPortError(java.util.List<OvsdbPortName> portNames, org.onosproject.net.DeviceId bridgeId)
portNames - the portNames which need to be checked for errorsbridgeId - bridgeIdentifier