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