Fixed annotations parsing int PortDescriptionConfig

Change-Id: I612bede9fd90b82779c82d7ba0191b975e50f337
This commit is contained in:
Carmelo Cascone 2018-01-31 14:46:29 -08:00
parent d519b55447
commit 693c38cf83

View File

@ -117,7 +117,7 @@ public class PortDescriptionsConfig extends Config<DeviceId> {
if (portNode.has(ANNOTATIONS)) {
DefaultAnnotations.Builder annotationsBuilder = DefaultAnnotations.builder();
Iterator<Map.Entry<String, JsonNode>> annotationsIt = portNode.get(ANNOTATIONS).fields();
while (it.hasNext()) {
while (annotationsIt.hasNext()) {
Map.Entry<String, JsonNode> entry = annotationsIt.next();
annotationsBuilder.set(entry.getKey(), entry.getValue().asText());
}