Fixed an issue that innerVlan, tpid and suspended bit is not correctly set
Change-Id: I8aba666d65b14fd445083b21ff146dfe5e335aab
diff --git a/core/store/dist/src/main/java/org/onosproject/store/host/impl/DistributedHostStore.java b/core/store/dist/src/main/java/org/onosproject/store/host/impl/DistributedHostStore.java
index b2f90ee..c4e1b68 100644
--- a/core/store/dist/src/main/java/org/onosproject/store/host/impl/DistributedHostStore.java
+++ b/core/store/dist/src/main/java/org/onosproject/store/host/impl/DistributedHostStore.java
@@ -248,7 +248,10 @@
existingHost.vlan(),
existingHost.locations(),
ImmutableSet.copyOf(addresses),
+ existingHost.innerVlan(),
+ existingHost.tpid(),
existingHost.configured(),
+ existingHost.suspended(),
existingHost.annotations());
} else {
return existingHost;
@@ -278,7 +281,8 @@
return new DefaultHost(existingHost.providerId(),
hostId, existingHost.mac(), existingHost.vlan(),
newLocations, existingHost.ipAddresses(),
- existingHost.configured(), existingHost.annotations());
+ existingHost.innerVlan(), existingHost.tpid(),
+ existingHost.configured(), existingHost.suspended(), existingHost.annotations());
}
return null;
});
@@ -302,7 +306,8 @@
new DefaultHost(existingHost.providerId(),
hostId, existingHost.mac(), existingHost.vlan(),
locations, existingHost.ipAddresses(),
- existingHost.configured(), existingHost.annotations());
+ existingHost.innerVlan(), existingHost.tpid(),
+ existingHost.configured(), existingHost.suspended(), existingHost.annotations());
}
return null;
});