public interface HostProviderService extends ProviderService<HostProvider>
Modifier and Type | Method and Description |
---|---|
default MacAddress |
addPendingHostLocation(HostId hostId,
HostLocation hostLocation)
Notifies HostProviderService the beginning of pending host location verification and
retrieves the unique MAC address for the probe.
|
void |
hostDetected(HostId hostId,
HostDescription hostDescription,
boolean replaceIps)
Notifies the core when a host has been detected on a network along with
information that identifies the host location.
|
void |
hostVanished(HostId hostId)
Notifies the core when a host is no longer detected on a network.
|
void |
removeIpFromHost(HostId hostId,
IpAddress ipAddress)
Notifies the core when an IP is no longer associated with a host.
|
void |
removeLocationFromHost(HostId hostId,
HostLocation location)
Notifies the core when a location is no longer associated with a host.
|
default void |
removePendingHostLocation(MacAddress probeMac)
Notifies HostProviderService the end of pending host location verification.
|
provider
void hostDetected(HostId hostId, HostDescription hostDescription, boolean replaceIps)
hostId
- id of the host that been detectedhostDescription
- description of host and its locationreplaceIps
- replace IP set if true, merge IP set otherwisevoid hostVanished(HostId hostId)
hostId
- id of the host that vanishedvoid removeIpFromHost(HostId hostId, IpAddress ipAddress)
hostId
- id of the hostipAddress
- ip address of host that vanishedvoid removeLocationFromHost(HostId hostId, HostLocation location)
hostId
- id of the hostlocation
- location of host that vanisheddefault MacAddress addPendingHostLocation(HostId hostId, HostLocation hostLocation)
hostId
- ID of the hosthostLocation
- the host location that is under verificationdefault void removePendingHostLocation(MacAddress probeMac)
probeMac
- the source MAC address ONOS uses to probe the host