commit | c40e5ed5ba1e87d2d4999cde6a7653227a62ffca | [log] [tgz] |
---|---|---|
author | samanwita pal <sam@onlab.us> | Thu Sep 24 11:01:51 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri Sep 25 01:51:31 2015 +0000 |
tree | a4f5685f03dc155f686913581327733912d294ff | |
parent | 605854f98a623de4673441ebb0ad3cff94c267a1 [diff] [blame] |
ONOS-2926 Remove IP instead of host when the IP mapping is released Change-Id: Ifea3366ce8a18ea068e615636b3069e769221c0e
diff --git a/core/api/src/main/java/org/onosproject/net/host/HostStore.java b/core/api/src/main/java/org/onosproject/net/host/HostStore.java index 5894fe9..918ced4 100644 --- a/core/api/src/main/java/org/onosproject/net/host/HostStore.java +++ b/core/api/src/main/java/org/onosproject/net/host/HostStore.java
@@ -55,6 +55,15 @@ HostEvent removeHost(HostId hostId); /** + * Removes the specified ip from the host entry. + * + * @param hostId host identification + * @param ipAddress ipAddress to be removed + * @return remove event or null if host was not found + */ + HostEvent removeIp(HostId hostId, IpAddress ipAddress); + + /** * Returns the number of hosts in the store. * * @return host count