@Beta public interface InterfaceService extends org.onosproject.event.ListenerService<InterfaceEvent,InterfaceListener>
| Modifier and Type | Method and Description |
|---|---|
Interface |
getInterfaceByName(org.onosproject.net.ConnectPoint connectPoint,
String name)
Returns the interface with the given name.
|
Set<Interface> |
getInterfaces()
Returns the set of all interfaces in the system.
|
Set<Interface> |
getInterfacesByIp(org.onlab.packet.IpAddress ip)
Returns the set of interfaces with the given IP address.
|
Set<Interface> |
getInterfacesByPort(org.onosproject.net.ConnectPoint port)
Returns the set of interfaces configured on the given port.
|
Set<Interface> |
getInterfacesByVlan(org.onlab.packet.VlanId vlan)
Returns the set of interfaces in the given VLAN.
|
Interface |
getMatchingInterface(org.onlab.packet.IpAddress ip)
Returns an interface that has an address that is in the same subnet as
the given IP address.
|
Set<Interface> getInterfaces()
Interface getInterfaceByName(org.onosproject.net.ConnectPoint connectPoint, String name)
connectPoint - connect point of the interfacename - name of the interfaceSet<Interface> getInterfacesByPort(org.onosproject.net.ConnectPoint port)
port - connect pointSet<Interface> getInterfacesByIp(org.onlab.packet.IpAddress ip)
ip - IP addressSet<Interface> getInterfacesByVlan(org.onlab.packet.VlanId vlan)
vlan - VLAN ID of the interfacesInterface getMatchingInterface(org.onlab.packet.IpAddress ip)
ip - IP address to find matching subnet interface for