Package org.onosproject.net.behaviour
Interface BridgeConfig
-
- All Superinterfaces:
Behaviour
,HandlerBehaviour
public interface BridgeConfig extends HandlerBehaviour
Behaviour for handling various drivers for bridge configurations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
addBridge(BridgeDescription bridgeDescription)
Adds a bridge with a given description.void
addPort(BridgeName bridgeName, java.lang.String portName)
Adds a port to a given bridge.void
deleteBridge(BridgeName bridgeName)
Remove a bridge.void
deletePort(BridgeName bridgeName, java.lang.String portName)
Removes a port from a given bridge.default void
deletePorts(BridgeName bridgeName, java.util.List<java.lang.String> portNames)
Deletes ports to a given bridge.java.util.Collection<BridgeDescription>
getBridges()
Remove a bridge.java.util.List<PortNumber>
getLocalPorts(java.lang.Iterable<java.lang.String> ifaceIds)
Get logical/virtual ports by ifaceIds.java.util.Set<PortNumber>
getPortNumbers()
Get a collection of port.java.util.Collection<PortDescription>
getPorts()
Delete a logical/virtual port.-
Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour
handler, setHandler
-
-
-
-
Method Detail
-
addBridge
boolean addBridge(BridgeDescription bridgeDescription)
Adds a bridge with a given description.- Parameters:
bridgeDescription
- bridge description- Returns:
- true if succeeds, or false
-
deleteBridge
void deleteBridge(BridgeName bridgeName)
Remove a bridge.- Parameters:
bridgeName
- bridge name
-
getBridges
java.util.Collection<BridgeDescription> getBridges()
Remove a bridge.- Returns:
- bridge collection
-
addPort
void addPort(BridgeName bridgeName, java.lang.String portName)
Adds a port to a given bridge.- Parameters:
bridgeName
- bridge nameportName
- port name
-
deletePort
void deletePort(BridgeName bridgeName, java.lang.String portName)
Removes a port from a given bridge.- Parameters:
bridgeName
- bridge nameportName
- port name
-
deletePorts
default void deletePorts(BridgeName bridgeName, java.util.List<java.lang.String> portNames)
Deletes ports to a given bridge.- Parameters:
bridgeName
- bridge nameportNames
- list port names
-
getPorts
java.util.Collection<PortDescription> getPorts()
Delete a logical/virtual port.- Returns:
- collection of port
-
getPortNumbers
java.util.Set<PortNumber> getPortNumbers()
Get a collection of port.- Returns:
- portNumbers set of PortNumber
-
getLocalPorts
java.util.List<PortNumber> getLocalPorts(java.lang.Iterable<java.lang.String> ifaceIds)
Get logical/virtual ports by ifaceIds.- Parameters:
ifaceIds
- the ifaceid that needed- Returns:
- list of PortNumber
-
-