aboutsummaryrefslogtreecommitdiffstats
path: root/config/jolt/l3-networkSpec.json
diff options
context:
space:
mode:
Diffstat (limited to 'config/jolt/l3-networkSpec.json')
-rw-r--r--config/jolt/l3-networkSpec.json49
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].&"
+ }
+ }
+ },
+ "*": {
+ "@" : "&"
+ }
+ }
+ }
+]