Include the new nextHopTemp field in equals, hashCode, toString and clone
Change-Id: I4f62b00d01faa9822b239a9356adeac50c2f0b06
diff --git a/apps/dhcprelay/src/main/java/org/onosproject/dhcprelay/store/DhcpRecord.java b/apps/dhcprelay/src/main/java/org/onosproject/dhcprelay/store/DhcpRecord.java
index 51d8f98..e133f03 100644
--- a/apps/dhcprelay/src/main/java/org/onosproject/dhcprelay/store/DhcpRecord.java
+++ b/apps/dhcprelay/src/main/java/org/onosproject/dhcprelay/store/DhcpRecord.java
@@ -288,6 +288,7 @@
locations.forEach(newRecord::addLocation);
newRecord.directlyConnected = directlyConnected;
newRecord.nextHop = nextHop;
+ newRecord.nextHopTemp = nextHopTemp;
newRecord.ip4Address = ip4Address;
newRecord.ip4Status = ip4Status;
newRecord.ip6Address = ip6Address;
@@ -299,7 +300,7 @@
@Override
public int hashCode() {
return Objects.hash(locations, macAddress, vlanId, ip4Address, ip4Status,
- nextHop, ip6Address, ip6Status, lastSeen);
+ nextHop, nextHopTemp, ip6Address, ip6Status, lastSeen);
}
@Override
@@ -317,6 +318,7 @@
Objects.equals(ip4Address, that.ip4Address) &&
Objects.equals(ip4Status, that.ip4Status) &&
Objects.equals(nextHop, that.nextHop) &&
+ Objects.equals(nextHopTemp, that.nextHopTemp) &&
Objects.equals(ip6Address, that.ip6Address) &&
Objects.equals(ip6Status, that.ip6Status) &&
Objects.equals(lastSeen, that.lastSeen) &&
@@ -332,6 +334,7 @@
.add("ip4Address", ip4Address)
.add("ip4State", ip4Status)
.add("nextHop", nextHop)
+ .add("nextHopTemp", nextHopTemp)
.add("ip6Address", ip6Address)
.add("ip6State", ip6Status)
.add("lastSeen", lastSeen)