Interface InterfaceConfig

    • Method Detail

      • addAccessMode

        boolean addAccessMode​(java.lang.String intf,
                              VlanId vlanId)
        Adds an access interface to a VLAN.
        Parameters:
        intf - the name of the interface
        vlanId - the VLAN ID
        Returns:
        the result of operation
      • removeAccessMode

        boolean removeAccessMode​(java.lang.String intf)
        Removes an access interface to a VLAN.
        Parameters:
        intf - the name of the interface
        Returns:
        the result of operation
      • addTrunkMode

        boolean addTrunkMode​(java.lang.String intf,
                             java.util.List<VlanId> vlanIds)
        Adds a trunk interface for VLANs.
        Parameters:
        intf - the name of the interface
        vlanIds - the VLAN IDs
        Returns:
        the result of operation
      • removeTrunkMode

        boolean removeTrunkMode​(java.lang.String intf)
        Removes trunk mode configuration from an interface.
        Parameters:
        intf - the name of the interface
        Returns:
        the result of operation
      • addRateLimit

        boolean addRateLimit​(java.lang.String intf,
                             short limit)
        Adds a rate limit on an interface.
        Parameters:
        intf - the name of the interface
        limit - the limit as a percentage
        Returns:
        the result of operation
      • removeRateLimit

        boolean removeRateLimit​(java.lang.String intf)
        Removes rate limit from an interface.
        Parameters:
        intf - the name of the interface
        Returns:
        the result of operation
      • addTunnelMode

        boolean addTunnelMode​(java.lang.String intf,
                              TunnelDescription tunnelDesc)
        Adds a tunnel mode to supplied interface.
        Parameters:
        intf - the name of the interface
        tunnelDesc - tunnel interface description
        Returns:
        true if the operation succeeds
      • removeTunnelMode

        boolean removeTunnelMode​(java.lang.String intf)
        Removes a tunnel interface.
        Parameters:
        intf - tunnel interface name
        Returns:
        true if the operation succeeds
      • addPatchMode

        boolean addPatchMode​(java.lang.String ifaceName,
                             PatchDescription patchInterface)
        Adds a patch mode to the supplied interface.
        Parameters:
        ifaceName - interface name to set patch mode
        patchInterface - interface description
        Returns:
        true if the operation succeeds
      • removePatchMode

        boolean removePatchMode​(java.lang.String ifaceName)
        Removes a patch mode from the supplied interface.
        Parameters:
        ifaceName - interface name
        Returns:
        true if the operation succeeds
      • getInterfaces

        java.util.List<DeviceInterfaceDescription> getInterfaces()
        Provides the interfaces configured on a device.
        Returns:
        the list of the configured interfaces