Committed by
Gerrit Code Review
[ONOS-641] Update unit tests to include IPv6 as well
- HostMonitorTest Add more IPv6 related test cases - HostLocationProviderTest Add more test cases, including: NS/NA RS/RA DAD IPv6 unicast IPv6 multicast IPv4 - HostLocationProvider Minor indent fix Change-Id: Id4c3af430862c61872ccaa98beac3a47313206ac
Showing
3 changed files
with
6 additions
and
6 deletions
This diff is collapsed. Click to expand it.
... | @@ -335,15 +335,15 @@ public class HostLocationProvider extends AbstractProvider implements HostProvid | ... | @@ -335,15 +335,15 @@ public class HostLocationProvider extends AbstractProvider implements HostProvid |
335 | arp.getSenderProtocolAddress()); | 335 | arp.getSenderProtocolAddress()); |
336 | updateLocationIP(hid, srcMac, vlan, hloc, ip); | 336 | updateLocationIP(hid, srcMac, vlan, hloc, ip); |
337 | 337 | ||
338 | - // IPv4: update location only | 338 | + // IPv4: update location only |
339 | } else if (eth.getEtherType() == Ethernet.TYPE_IPV4) { | 339 | } else if (eth.getEtherType() == Ethernet.TYPE_IPV4) { |
340 | updateLocation(hid, srcMac, vlan, hloc); | 340 | updateLocation(hid, srcMac, vlan, hloc); |
341 | 341 | ||
342 | - // | 342 | + // |
343 | - // NeighborAdvertisement and NeighborSolicitation: possible | 343 | + // NeighborAdvertisement and NeighborSolicitation: possible |
344 | - // new hosts, update both location and IP. | 344 | + // new hosts, update both location and IP. |
345 | - // | 345 | + // |
346 | - // IPv6: update location only | 346 | + // IPv6: update location only |
347 | } else if (eth.getEtherType() == Ethernet.TYPE_IPV6) { | 347 | } else if (eth.getEtherType() == Ethernet.TYPE_IPV6) { |
348 | IPv6 ipv6 = (IPv6) eth.getPayload(); | 348 | IPv6 ipv6 = (IPv6) eth.getPayload(); |
349 | IpAddress ip = IpAddress.valueOf(IpAddress.Version.INET6, | 349 | IpAddress ip = IpAddress.valueOf(IpAddress.Version.INET6, | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment