public interface BridgeConfig extends HandlerBehaviour
Modifier and Type | Method and Description |
---|---|
boolean |
addBridge(BridgeDescription bridgeDescription)
Adds a bridge with a given description.
|
void |
addPort(BridgeName bridgeName,
String portName)
Adds a port to a given bridge.
|
void |
deleteBridge(BridgeName bridgeName)
Remove a bridge.
|
void |
deletePort(BridgeName bridgeName,
String portName)
Removes a port from a given bridge.
|
Collection<BridgeDescription> |
getBridges()
Remove a bridge.
|
List<PortNumber> |
getLocalPorts(Iterable<String> ifaceIds)
Get logical/virtual ports by ifaceIds.
|
Set<PortNumber> |
getPortNumbers()
Get a collection of port.
|
Collection<PortDescription> |
getPorts()
Delete a logical/virtual port.
|
handler, setHandler
boolean addBridge(BridgeDescription bridgeDescription)
bridgeDescription
- bridge descriptionvoid deleteBridge(BridgeName bridgeName)
bridgeName
- bridge nameCollection<BridgeDescription> getBridges()
void addPort(BridgeName bridgeName, String portName)
bridgeName
- bridge nameportName
- port namevoid deletePort(BridgeName bridgeName, String portName)
bridgeName
- bridge nameportName
- port nameCollection<PortDescription> getPorts()
Set<PortNumber> getPortNumbers()
List<PortNumber> getLocalPorts(Iterable<String> ifaceIds)
ifaceIds
- the ifaceid that needed