1 package org.onap.vid.model.aaiTree
3 import org.apache.commons.lang.StringUtils
5 fun isNfc(node: AAITreeNode): Boolean {
6 return node.type == NodeType.INSTANCE_GROUP &&
7 node.additionalProperties["instance-group-type"] != null &&
8 StringUtils.equalsIgnoreCase(node.additionalProperties["instance-group-type"].toString(), "L3-NETWORK")
11 class CollectionResource(node: AAITreeNode) : Node(node) {
13 val ncfs: Map<String, NCF> = node.children.filter { isNfc(it) }.map { it.uniqueNodeKey to NCF(it) }.toMap()