public interface VlanHandler extends HandlerFacet
Modifier and Type | Method and Description |
---|---|
void |
addIpAddress(VlanId vid,
IpAddress ip,
SubnetMask mask)
Add an IP address to the vlan.
|
void |
addPort(VlanPortPair port)
Add a port to a vlan.
|
void |
createVlan(VlanId vid,
String name,
String description)
Creates a vlan
|
void |
deleteVlan(VlanId vid)
Delete the vlan identified by the vlan identifier (VID).
|
Set<VlanId> |
getVIdsContainingPort(InterfaceId port,
VlanTagType tag)
Get the set of vlan identifiers (VID) that the specified port is a
member of.
|
VlanInfo |
getVlan(VlanId vid)
Get the Vlan object for the specified VID.
|
Set<VlanInfo> |
getVlans()
Get a set of all Vlans that have been created.
|
Set<VlanInfo> |
getVlansContainingPort(InterfaceId port,
VlanTagType tag)
Get the set of Vlans that the specified port is a member of.
|
void |
removeIpAddress(VlanId vid,
IpAddress ip,
SubnetMask mask)
Remove an IP address from the vlan.
|
void |
removePort(VlanPortPair port)
Remove a port from a vlan.
|
void |
setDescription(VlanId vid)
Set or change the vlan description.
|
void |
setName(VlanId vid)
Set or change the vlan name.
|
apply, fetch, getIpAddress, setIpAddress
getContext, getTypeName
void createVlan(VlanId vid, String name, String description)
vid
- the vlan identifier (VID) to be assigned to the vlanname
- the vlan namedescription
- description of the vlanvoid deleteVlan(VlanId vid)
vid
- the vlan identifier (VID) assigned to the vlan to be deletedvoid addPort(VlanPortPair port)
port
- the port to be addedvoid removePort(VlanPortPair port)
port
- the port to be removedvoid addIpAddress(VlanId vid, IpAddress ip, SubnetMask mask)
vid
- vlan identifier to add IP addressip
- IP address to be added to the vlanmask
- subnet mask for the IP addressvoid removeIpAddress(VlanId vid, IpAddress ip, SubnetMask mask)
vid
- vlan identifier to remove the IP address fromip
- IP address to be removed from the vlanmask
- subnet mask for the IP addressvoid setName(VlanId vid)
vid
- vlan identifier for the vlan whose name is to be set.void setDescription(VlanId vid)
vid
- vlan identifier for the vlan whose description is to be set.Set<VlanInfo> getVlans()
VlanInfo getVlan(VlanId vid)
vid
- the vlan identifier (VID) assigned to the vlanSet<VlanId> getVIdsContainingPort(InterfaceId port, VlanTagType tag)
port
- the port to return VIDs fortag
- the tag type of the portSet<VlanInfo> getVlansContainingPort(InterfaceId port, VlanTagType tag)
port
- the port to return Vlans fortag
- the tag type of the portCopyright © 2015. All Rights Reserved.