mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-05 04:06:49 +02:00
Fixed annotations parsing int PortDescriptionConfig
Change-Id: I612bede9fd90b82779c82d7ba0191b975e50f337
This commit is contained in:
parent
d519b55447
commit
693c38cf83
@ -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());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user