Bug Description : Remove SW2 property "description" to a node - not working for both OF13 and OF10 mininet.
Change-Id: I8d5145e4137696b3592e06a21c55e04b3c8b7122
Signed-off-by: goyal <sheena.goyal@tcs.com>
Signed-off-by: Moiz Raja <moraja@cisco.com>
String prop = entry.getKey();
if (!updateProperties.containsKey(prop)) {
if (prop.equals(Description.propertyName)) {
- if (!advertisedDesc.isEmpty()) {
- Property desc = new Description(advertisedDesc);
- propMap.put(Description.propertyName, desc);
+ if (advertisedDesc != null) {
+ if (!advertisedDesc.isEmpty()) {
+ Property desc = new Description(advertisedDesc);
+ propMap.put(Description.propertyName, desc);
+ }
+ }
+ else {
+ propMap.remove(prop);
}
continue;
} else if (prop.equals(ForwardingMode.name)) {