ONOS-6649 Port not removed on all nodes, data inconsistency
Change-Id: I367f5822a831d02ea13d098393e130988b2f9dbb
diff --git a/core/api/src/main/java/org/onosproject/net/device/DefaultPortDescription.java b/core/api/src/main/java/org/onosproject/net/device/DefaultPortDescription.java
index 37930e3..2354fce 100644
--- a/core/api/src/main/java/org/onosproject/net/device/DefaultPortDescription.java
+++ b/core/api/src/main/java/org/onosproject/net/device/DefaultPortDescription.java
@@ -103,7 +103,7 @@
*/
public DefaultPortDescription(PortDescription base,
SparseAnnotations annotations) {
- this(base.portNumber(), base.isEnabled(), base.type(), base.portSpeed(),
+ this(base.portNumber(), base.isEnabled(), base.isRemoved(), base.type(), base.portSpeed(),
annotations);
}
@@ -150,6 +150,7 @@
return MoreObjects.toStringHelper(getClass())
.add("number", number)
.add("isEnabled", isEnabled)
+ .add("isRemoved", isRemoved)
.add("type", type)
.add("portSpeed", portSpeed)
.add("annotations", annotations())