public interface InterfaceService extends ListenerService<InterfaceEvent,InterfaceListener>
| Modifier and Type | Method and Description |
|---|---|
Interface |
getInterfaceByName(ConnectPoint connectPoint,
java.lang.String name)
Returns the interface with the given name.
|
java.util.Set<Interface> |
getInterfaces()
Returns the set of all interfaces in the system.
|
java.util.Set<Interface> |
getInterfacesByIp(IpAddress ip)
Returns the set of interfaces with the given IP address.
|
java.util.Set<Interface> |
getInterfacesByPort(ConnectPoint port)
Returns the set of interfaces configured on the given port.
|
java.util.Set<Interface> |
getInterfacesByVlan(VlanId vlan)
Returns the set of interfaces in the given VLAN.
|
Interface |
getMatchingInterface(IpAddress ip)
Returns an interface that has an address that is in the same subnet as
the given IP address.
|
java.util.Set<Interface> |
getMatchingInterfaces(IpAddress ip)
Returns all interfaces that have an address that is in the same
subnet as the given IP address.
|
default VlanId |
getNativeVlanId(ConnectPoint connectPoint)
Returns native VLAN configured on given connect point.
|
default java.util.Set<VlanId> |
getTaggedVlanId(ConnectPoint connectPoint)
Returns tagged VLAN configured on given connect point.
|
default VlanId |
getUntaggedVlanId(ConnectPoint connectPoint)
Returns untagged VLAN configured on given connect point.
|
default boolean |
isConfigured(ConnectPoint connectPoint)
Returns true if given connectPoint has an IP address or vlan configured
on any of its interfaces.
|
addListener, removeListenerjava.util.Set<Interface> getInterfaces()
Interface getInterfaceByName(ConnectPoint connectPoint, java.lang.String name)
connectPoint - connect point of the interfacename - name of the interfacejava.util.Set<Interface> getInterfacesByPort(ConnectPoint port)
port - connect pointjava.util.Set<Interface> getInterfacesByIp(IpAddress ip)
ip - IP addressjava.util.Set<Interface> getInterfacesByVlan(VlanId vlan)
vlan - VLAN ID of the interfacesInterface getMatchingInterface(IpAddress ip)
ip - IP address to find matching subnet interface forjava.util.Set<Interface> getMatchingInterfaces(IpAddress ip)
ip - IP address to find matching subnet interface fordefault VlanId getUntaggedVlanId(ConnectPoint connectPoint)
Only returns the first match if there are multiple untagged VLAN configured on the connect point.
connectPoint - connect pointdefault java.util.Set<VlanId> getTaggedVlanId(ConnectPoint connectPoint)
Returns all matches if there are multiple tagged VLAN configured on the connect point.
connectPoint - connect pointdefault VlanId getNativeVlanId(ConnectPoint connectPoint)
Only returns the first match if there are multiple native VLAN configured on the connect point.
connectPoint - connect pointdefault boolean isConfigured(ConnectPoint connectPoint)
connectPoint - the port on a device