mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-25 14:21:33 +02:00
Removed redundant checks from Topo2Jsonifier.
Change-Id: I98af34fa2c14889af8acf716b410da24885f4330
This commit is contained in:
parent
8601627219
commit
cd508a658e
@ -216,13 +216,8 @@ class Topo2Jsonifier {
|
||||
return payload;
|
||||
}
|
||||
payload.put("id", region.idAsString());
|
||||
if (subRegions != null) {
|
||||
payload.set("subregions", jsonSubRegions(subRegions));
|
||||
}
|
||||
|
||||
if (links != null) {
|
||||
payload.set("links", jsonLinks(links));
|
||||
}
|
||||
payload.set("subregions", jsonSubRegions(subRegions));
|
||||
payload.set("links", jsonLinks(links));
|
||||
|
||||
List<String> layerTags = region.layerOrder();
|
||||
List<Set<UiNode>> splitDevices = splitByLayer(layerTags, region.devices());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user