public interface MacGroupService
MacGroupId
, one can know
what Mac addresses are configured under it.Modifier and Type | Method and Description |
---|---|
void |
addMacs(MacGroupId mid,
Set<MacAddress> macs)
Add Mac addresses into the existing Mac group
|
Map<MacGroupId,MacGroup> |
getMacGroups(DataPathId dpid,
MacGroup.Type type)
List Mac groups from the dataPath by type
|
Set<MacAddress> |
getMacs(MacGroupId mid)
List all member Mac addresses in the given Mac group
|
void |
removeAllMacs(MacGroupId mid)
Delete a Mac group from the datapath and remove all its member Mac
addresses.
|
void |
removeMacs(MacGroupId mid,
Set<MacAddress> macs)
Remove Mac addresses from the existing Mac group
|
void addMacs(MacGroupId mid, Set<MacAddress> macs)
mid
- Mac group Id, tuple of (dataPath ID, SRC/DST, group ID)macs
- Set of Mac Addresses to addvoid removeMacs(MacGroupId mid, Set<MacAddress> macs)
mid
- Mac group Id, tuple of (dataPath ID, SRC/DST, group ID)macs
- Set of Mac Addresses to removevoid removeAllMacs(MacGroupId mid)
mid
- Mac group Id, tuple of (dataPath ID, SRC/DST, group ID)Set<MacAddress> getMacs(MacGroupId mid)
mid
- Mac group Id, tuple of (dataPath ID, SRC/DST, group ID)Map<MacGroupId,MacGroup> getMacGroups(DataPathId dpid, MacGroup.Type type)
dpid
- dataPath IDtype
- Type of Mac group, SRC/DSTCopyright © 2015. All Rights Reserved.