diff options
author | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2019-02-19 14:54:54 -0500 |
---|---|---|
committer | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2019-02-20 13:56:41 -0500 |
commit | a63304affd6cb323fedcf76c2961c9cb983a7597 (patch) | |
tree | 89821b037fcf9eb86480806c9b7824839befd775 /config/jolt/p-interfaceSpec.json | |
parent | 85dda672f8d9a3bed20ca36852fa6e94c378f5b4 (diff) |
ND Context Builder Updates for port/p-interface
Issue-ID: LOG-977
Change-Id: I321036e0f51297092b9c88ff668c4e09c89b36a0
Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
Diffstat (limited to 'config/jolt/p-interfaceSpec.json')
-rw-r--r-- | config/jolt/p-interfaceSpec.json | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/config/jolt/p-interfaceSpec.json b/config/jolt/p-interfaceSpec.json new file mode 100644 index 0000000..c7d5542 --- /dev/null +++ b/config/jolt/p-interfaceSpec.json @@ -0,0 +1,55 @@ +[ + // 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": { + "mac_address": { + "@2": "tempList[]" + }, + "description": { + "@2": "tempList[]" + } + } + } + } + } + } + } + } + , + { + // Convert the attribute names to common model names. + "operation": "shift", + "spec": { + "tempList": { + "*": { + "name": { + "mac_address": { + "#macAddress": "attributeList[#4].name" + }, + "description": { + "#description": "attributeList[#4].name" + } + }, + "*": { + "@": "attributeList[#3].&" + } + } + }, + "*": { + "@": "&" + } + } + } +] |