Jayasree Ghosh

Changing to lower case for JSON Keys: part of ONOS-5020 fix

Change-Id: Ie0c100868c949335aea31e2d086d262a32f5d49e
...@@ -39,7 +39,7 @@ public final class DisjointPathCodec extends AnnotatedCodec<DisjointPath> { ...@@ -39,7 +39,7 @@ public final class DisjointPathCodec extends AnnotatedCodec<DisjointPath> {
39 .createObjectNode() 39 .createObjectNode()
40 .put("cost", disjointPath.primary().cost()); 40 .put("cost", disjointPath.primary().cost());
41 41
42 - result.set("Primary", primary); 42 + result.set("primary", primary);
43 ArrayNode jsonLinks = primary.putArray("links"); 43 ArrayNode jsonLinks = primary.putArray("links");
44 for (Link link : disjointPath.primary().links()) { 44 for (Link link : disjointPath.primary().links()) {
45 jsonLinks.add(codec.encode(link, context)); 45 jsonLinks.add(codec.encode(link, context));
...@@ -48,7 +48,7 @@ public final class DisjointPathCodec extends AnnotatedCodec<DisjointPath> { ...@@ -48,7 +48,7 @@ public final class DisjointPathCodec extends AnnotatedCodec<DisjointPath> {
48 ObjectNode backup = context.mapper() 48 ObjectNode backup = context.mapper()
49 .createObjectNode() 49 .createObjectNode()
50 .put("cost", disjointPath.backup().cost()); 50 .put("cost", disjointPath.backup().cost());
51 - result.set("Backup", backup); 51 + result.set("backup", backup);
52 ArrayNode jsonLinks1 = backup.putArray("links"); 52 ArrayNode jsonLinks1 = backup.putArray("links");
53 for (Link link1 : disjointPath.backup().links()) { 53 for (Link link1 : disjointPath.backup().links()) {
54 jsonLinks1.add(codec.encode(link1, context)); 54 jsonLinks1.add(codec.encode(link1, context));
......