@Service
public class InterfaceManager
extends org.onosproject.event.ListenerRegistry<org.onosproject.net.intf.InterfaceEvent,org.onosproject.net.intf.InterfaceListener>
implements org.onosproject.net.intf.InterfaceService, org.onosproject.net.intf.InterfaceAdminService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.config.NetworkConfigService |
configService |
| Constructor and Description |
|---|
InterfaceManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
add(org.onosproject.net.intf.Interface intf) |
void |
deactivate() |
org.onosproject.net.intf.Interface |
getInterfaceByName(org.onosproject.net.ConnectPoint connectPoint,
String name) |
Set<org.onosproject.net.intf.Interface> |
getInterfaces() |
Set<org.onosproject.net.intf.Interface> |
getInterfacesByIp(org.onlab.packet.IpAddress ip) |
Set<org.onosproject.net.intf.Interface> |
getInterfacesByPort(org.onosproject.net.ConnectPoint port) |
Set<org.onosproject.net.intf.Interface> |
getInterfacesByVlan(org.onlab.packet.VlanId vlan) |
org.onosproject.net.intf.Interface |
getMatchingInterface(org.onlab.packet.IpAddress ip) |
Set<org.onosproject.net.intf.Interface> |
getMatchingInterfaces(org.onlab.packet.IpAddress ip) |
boolean |
remove(org.onosproject.net.ConnectPoint connectPoint,
String name) |
addListener, onProcessLimit, process, removeListener, reportProblem@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.config.NetworkConfigService configService
@Activate public void activate()
@Deactivate public void deactivate()
public Set<org.onosproject.net.intf.Interface> getInterfaces()
getInterfaces in interface org.onosproject.net.intf.InterfaceServicepublic org.onosproject.net.intf.Interface getInterfaceByName(org.onosproject.net.ConnectPoint connectPoint,
String name)
getInterfaceByName in interface org.onosproject.net.intf.InterfaceServicepublic Set<org.onosproject.net.intf.Interface> getInterfacesByPort(org.onosproject.net.ConnectPoint port)
getInterfacesByPort in interface org.onosproject.net.intf.InterfaceServicepublic Set<org.onosproject.net.intf.Interface> getInterfacesByIp(org.onlab.packet.IpAddress ip)
getInterfacesByIp in interface org.onosproject.net.intf.InterfaceServicepublic org.onosproject.net.intf.Interface getMatchingInterface(org.onlab.packet.IpAddress ip)
getMatchingInterface in interface org.onosproject.net.intf.InterfaceServicepublic Set<org.onosproject.net.intf.Interface> getMatchingInterfaces(org.onlab.packet.IpAddress ip)
getMatchingInterfaces in interface org.onosproject.net.intf.InterfaceServicepublic Set<org.onosproject.net.intf.Interface> getInterfacesByVlan(org.onlab.packet.VlanId vlan)
getInterfacesByVlan in interface org.onosproject.net.intf.InterfaceServicepublic void add(org.onosproject.net.intf.Interface intf)
add in interface org.onosproject.net.intf.InterfaceAdminServicepublic boolean remove(org.onosproject.net.ConnectPoint connectPoint,
String name)
remove in interface org.onosproject.net.intf.InterfaceAdminService