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.
|
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 for