[ONOS-7965]
add manufacturer and serialnumbers for accurately updating device.
Change-Id: I933c6ab888e3c43f261fbfb3e71e8cca7e4263d5
diff --git a/core/store/dist/src/main/java/org/onosproject/store/device/impl/GossipDeviceStore.java b/core/store/dist/src/main/java/org/onosproject/store/device/impl/GossipDeviceStore.java
index be94e3d..c30e399 100644
--- a/core/store/dist/src/main/java/org/onosproject/store/device/impl/GossipDeviceStore.java
+++ b/core/store/dist/src/main/java/org/onosproject/store/device/impl/GossipDeviceStore.java
@@ -416,7 +416,10 @@
!Objects.equals(oldDevice.hwVersion(), newDevice.hwVersion()) ||
!Objects.equals(oldDevice.swVersion(), newDevice.swVersion()) ||
!Objects.equals(oldDevice.providerId(), newDevice.providerId()) ||
- !Objects.equals(oldDevice.chassisId(), newDevice.chassisId());
+ !Objects.equals(oldDevice.chassisId(), newDevice.chassisId()) ||
+ !Objects.equals(oldDevice.serialNumber(), newDevice.serialNumber()) ||
+ !Objects.equals(oldDevice.manufacturer(), newDevice.manufacturer());
+
boolean annotationsChanged =
!AnnotationsUtil.isEqual(oldDevice.annotations(), newDevice.annotations());