When staging a node from the cache, forgot to update the adjacencies correctly.
Signed-off-by: Andrew Kim <andrekim@cisco.com>
Map<String, String> data = (Map<String, String>) nodeEntry.get("data");
data.put("$desc", description);
nodeEntry.put("data", data);
Map<String, String> data = (Map<String, String>) nodeEntry.get("data");
data.put("$desc", description);
nodeEntry.put("data", data);
+ // clear adjacencies since this is now a single node
+ nodeEntry.put("adjacencies", new LinkedList<Map<String, Object>>());
stagedNodes.put(node.id(), nodeEntry);
} else {
newNodes.put(node.id(), node.out());
stagedNodes.put(node.id(), nodeEntry);
} else {
newNodes.put(node.id(), node.out());