public interface InterfaceConfig extends HandlerBehaviour
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAccessMode(String intf,
VlanId vlanId)
Adds an access interface to a VLAN.
|
boolean |
addPatchMode(String ifaceName,
PatchDescription patchInterface)
Adds a patch mode to the supplied interface.
|
boolean |
addRateLimit(String intf,
short limit)
Adds a rate limit on an interface.
|
boolean |
addTrunkMode(String intf,
List<VlanId> vlanIds)
Adds a trunk interface for VLANs.
|
boolean |
addTunnelMode(String intf,
TunnelDescription tunnelDesc)
Adds a tunnel mode to supplied interface.
|
List<DeviceInterfaceDescription> |
getInterfaces()
Provides the interfaces configured on a device.
|
boolean |
removeAccessMode(String intf)
Removes an access interface to a VLAN.
|
boolean |
removePatchMode(String ifaceName)
Removes a patch mode from the supplied interface.
|
boolean |
removeRateLimit(String intf)
Removes rate limit from an interface.
|
boolean |
removeTrunkMode(String intf)
Removes trunk mode configuration from an interface.
|
boolean |
removeTunnelMode(String intf)
Removes a tunnel interface.
|
handler, setHandlerboolean addAccessMode(String intf, VlanId vlanId)
intf - the name of the interfacevlanId - the VLAN IDboolean removeAccessMode(String intf)
intf - the name of the interfaceboolean addTrunkMode(String intf, List<VlanId> vlanIds)
intf - the name of the interfacevlanIds - the VLAN IDsboolean removeTrunkMode(String intf)
intf - the name of the interfaceboolean addRateLimit(String intf, short limit)
intf - the name of the interfacelimit - the limit as a percentageboolean removeRateLimit(String intf)
intf - the name of the interfaceboolean addTunnelMode(String intf, TunnelDescription tunnelDesc)
intf - the name of the interfacetunnelDesc - tunnel interface descriptionboolean removeTunnelMode(String intf)
intf - tunnel interface nameboolean addPatchMode(String ifaceName, PatchDescription patchInterface)
ifaceName - interface name to set patch modepatchInterface - interface descriptionboolean removePatchMode(String ifaceName)
ifaceName - interface nameList<DeviceInterfaceDescription> getInterfaces()