@Beta public interface L2SwitchVlanConfigBehaviour extends HandlerBehaviour
Modifier and Type | Method and Description |
---|---|
boolean |
addVlan(java.util.Collection<VlanId> vlanIds)
Adds VLANs on a device.
|
default boolean |
addVlan(VlanId vlanId)
Adds a VLAN on a device.
|
boolean |
disableVlan(java.util.Collection<VlanId> vlanIds)
Disables VLANs on a device.
|
default boolean |
disableVlan(VlanId vlanId)
Disables a VLAN on a device.
|
boolean |
enableVlan(java.util.Collection<VlanId> vlanIds)
Enables VLANs on a device.
|
default boolean |
enableVlan(VlanId vlanId)
Enables a VLAN on a device.
|
java.util.Collection<VlanId> |
getVlans()
Provides the VLANs configured on a device.
|
boolean |
isEnabled(VlanId vlanId)
Obtains the status of a VLAN on a device.
|
boolean |
removeVlan(java.util.Collection<VlanId> vlanIds)
Removes VLANs from a device.
|
default boolean |
removeVlan(VlanId vlanId)
Removes a VLAN from a device.
|
handler, setHandler
java.util.Collection<VlanId> getVlans()
default boolean addVlan(VlanId vlanId)
vlanId
- the VLAN to addboolean addVlan(java.util.Collection<VlanId> vlanIds)
vlanIds
- the VLANs to adddefault boolean removeVlan(VlanId vlanId)
vlanId
- the VLAN to removeboolean removeVlan(java.util.Collection<VlanId> vlanIds)
vlanIds
- the VLANs to removeboolean isEnabled(VlanId vlanId)
vlanId
- the VLAN to checkdefault boolean enableVlan(VlanId vlanId)
vlanId
- the VLAN to enableboolean enableVlan(java.util.Collection<VlanId> vlanIds)
vlanIds
- the VLANs to enabledefault boolean disableVlan(VlanId vlanId)
vlanId
- the VLAN to disableboolean disableVlan(java.util.Collection<VlanId> vlanIds)
vlanIds
- VLANs to disable