public class DefaultDeviceInterfaceDescription extends Object implements DeviceInterfaceDescription
DeviceInterfaceDescription.Mode
Constructor and Description |
---|
DefaultDeviceInterfaceDescription(String name,
DeviceInterfaceDescription.Mode mode,
List<VlanId> vlans,
boolean isRateLimited,
short rateLimit)
Device interface description object constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
isRateLimited()
Indicates whether a rate limit has been set on the interface.
|
DeviceInterfaceDescription.Mode |
mode()
Returns the operation mode of the interface.
|
String |
name()
Returns the name of the interface.
|
short |
rateLimit()
Returns the rate limit set on the interface bandwidth.
|
List<VlanId> |
vlans()
Returns the VLAN-IDs configured for the interface.
|
public DefaultDeviceInterfaceDescription(String name, DeviceInterfaceDescription.Mode mode, List<VlanId> vlans, boolean isRateLimited, short rateLimit)
name
- the name of the interfacemode
- the operation mode of the interfacevlans
- the vlan-id of the interface (none, one or multiple can be
specified based on if mode is normal, access or trunk).isRateLimited
- bandwidth limit application indicationrateLimit
- percentage of bandwidth limitpublic String name()
name
in interface DeviceInterfaceDescription
public DeviceInterfaceDescription.Mode mode()
mode
in interface DeviceInterfaceDescription
public List<VlanId> vlans()
vlans
in interface DeviceInterfaceDescription
public boolean isRateLimited()
isRateLimited
in interface DeviceInterfaceDescription
public short rateLimit()
rateLimit
in interface DeviceInterfaceDescription