Interface BridgeConfig

    • 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
      • addPort

        void addPort​(BridgeName bridgeName,
                     String portName)
        Adds a port to a given bridge.
        Parameters:
        bridgeName - bridge name
        portName - port name
      • addPorts

        default void addPorts​(BridgeName bridgeName,
                              List<String> portNames)
        Adds ports to a given bridge.
        Parameters:
        bridgeName - bridge name
        portNames - list port name
      • deletePort

        void deletePort​(BridgeName bridgeName,
                        String portName)
        Removes a port from a given bridge.
        Parameters:
        bridgeName - bridge name
        portName - port name
      • deletePorts

        default void deletePorts​(BridgeName bridgeName,
                                 List<String> portNames)
        Deletes ports to a given bridge.
        Parameters:
        bridgeName - bridge name
        portNames - list port names
      • getPortNumbers

        Set<PortNumber> getPortNumbers()
        Get a collection of port.
        Returns:
        portNumbers set of PortNumber
      • getLocalPorts

        List<PortNumber> getLocalPorts​(Iterable<String> ifaceIds)
        Get logical/virtual ports by ifaceIds.
        Parameters:
        ifaceIds - the ifaceid that needed
        Returns:
        list of PortNumber