summaryrefslogtreecommitdiffstats
path: root/pomba/network-discovery/config/jolt/vserver.json
diff options
context:
space:
mode:
authorNorm Traxler <normant@amdocs.com>2019-01-30 14:53:39 +0000
committerNorm Traxler <normant@amdocs.com>2019-01-31 14:46:56 +0000
commit893e2ff0fe4f605b5ce6f709c6fab8fe65d242f5 (patch)
tree0cc1b8003d2dbddfbf5273be5163fb091103aa09 /pomba/network-discovery/config/jolt/vserver.json
parentdcd5545d38527e498905eafd244d0de0940905da (diff)
Network Discovery support for network
Issue-ID: SDNC-475 Add support for Openstack network object retrieval. Moved the attribute translations into Jolt transformations. Change-Id: I442bfe39a5b84050d7a7fa8b50aaf831e4dd05d0 Signed-off-by: Norm Traxler <normant@amdocs.com>
Diffstat (limited to 'pomba/network-discovery/config/jolt/vserver.json')
-rw-r--r--pomba/network-discovery/config/jolt/vserver.json50
1 files changed, 31 insertions, 19 deletions
diff --git a/pomba/network-discovery/config/jolt/vserver.json b/pomba/network-discovery/config/jolt/vserver.json
index cc9e26d..1363be9 100644
--- a/pomba/network-discovery/config/jolt/vserver.json
+++ b/pomba/network-discovery/config/jolt/vserver.json
@@ -3,30 +3,42 @@
"operation": "shift",
"spec": {
"server": {
- "id": "vserver.id",
- "name": "vserver.name",
- "locked": "vserver.inMaintenance",
- "OS-EXT-SRV-ATTR:hostname": "vserver.hostname",
+ "id": "id",
+ "name": "name",
+ "locked": "tempList[].inMaintenance",
+ "OS-EXT-SRV-ATTR:hostname": "tempList[].hostname",
"image": {
- "id": "vserver.imageId"
- },
-
- "status": "vserver.status",
- "OS-EXT-STS:vm_state": "vserver.vmState",
- "tenant_id": "vserver.tenantId",
- "hostId": "vserver.hostId",
- "OS-EXT-SRV-ATTR:host": "vserver.host",
- "host_status": "vserver.hostStatus"
+ "id": "tempList[].imageId"
+ },
+ "status": "tempList[].status",
+ "OS-EXT-STS:vm_state" : "tempList[].vmState",
+ "user_id" : "tempList[].userId",
+ "tenant_id" : "tempList[].tenantId",
+ "hostId" : "tempList[].hostId",
+ "OS-EXT-SRV-ATTR:host" : "tempList[].host",
+ "host_status" : "tempList[].hostStatus"
}
}
- },
+ }
+ ,
{
- "operation": "default",
+ "operation": "shift",
"spec": {
+ "tempList": {
+ "*": {
+ "*" : {
+ "$": "attributeList[#3].name",
+ "@": "attributeList[#3].value"
+ },
+ "#ok": "attributeList[#2].dataQuality.status"
+ }
+ },
"*": {
- "hostStatus": "UNKNOWN"
- }
- }
- }
+ "@" : "&"
+ },
+ "#vserver": "type",
+ "#ok": "dataQuality.status"
+ }
+ }
]