diff options
author | Norm Traxler <normant@amdocs.com> | 2019-02-01 16:56:25 +0000 |
---|---|---|
committer | Norm Traxler <normant@amdocs.com> | 2019-02-05 21:35:35 +0000 |
commit | 85dda672f8d9a3bed20ca36852fa6e94c378f5b4 (patch) | |
tree | 5d6020abcf34a0d045c3cd24cf529fdb94693d60 /config/jolt/l3-networkSpec.json | |
parent | 3d61552b11dd676e15421de324cbf91e93178e4f (diff) |
Ctx Builder l3-network support3.0.1-ONAP
Issue-ID: SDNC-475
Network Discovery Ctx Builder to support l3-network attribute mapping to common model.
Fix jenkins JUnit failures
Change-Id: I64ded411a74ffb037df17a047c16e210d41c4992
Signed-off-by: Norm Traxler <normant@amdocs.com>
Diffstat (limited to 'config/jolt/l3-networkSpec.json')
-rw-r--r-- | config/jolt/l3-networkSpec.json | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/config/jolt/l3-networkSpec.json b/config/jolt/l3-networkSpec.json new file mode 100644 index 0000000..8924920 --- /dev/null +++ b/config/jolt/l3-networkSpec.json @@ -0,0 +1,49 @@ +[ + // This section converts the json from network discovery micro-service + // to org.onap.pomba.audit.common.model.Network + + { + "operation": "shift", + "spec": { + "resources": { + "*": { + "id": "uuid", + "name": "name", + "dataQuality": "dataQuality", + "attributeList": { + "*": { + // filter the Network Discovery attributes that we want to keep, to a temporary list: + "name": { + "sharedNetwork": { + "@2": "tempList[]" + } + } + } + } + } + } + } + } + , + { + // Convert the attribute names to common model names. + "operation": "shift", + "spec": { + "tempList": { + "*": { + "name" : { + "sharedNetwork": { + "#sharedNetworkBoolean": "attributeList[#4].name" + } + }, + "*" : { + "@" : "attributeList[#3].&" + } + } + }, + "*": { + "@" : "&" + } + } + } +] |