diff options
author | Norm Traxler <normant@amdocs.com> | 2019-01-30 14:53:39 +0000 |
---|---|---|
committer | Norm Traxler <normant@amdocs.com> | 2019-01-31 14:46:56 +0000 |
commit | 893e2ff0fe4f605b5ce6f709c6fab8fe65d242f5 (patch) | |
tree | 0cc1b8003d2dbddfbf5273be5163fb091103aa09 /pomba/network-discovery/config/jolt/l3-network.json | |
parent | dcd5545d38527e498905eafd244d0de0940905da (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/l3-network.json')
-rw-r--r-- | pomba/network-discovery/config/jolt/l3-network.json | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/pomba/network-discovery/config/jolt/l3-network.json b/pomba/network-discovery/config/jolt/l3-network.json index 0afe4a2..77fa4aa 100644 --- a/pomba/network-discovery/config/jolt/l3-network.json +++ b/pomba/network-discovery/config/jolt/l3-network.json @@ -3,23 +3,36 @@ "operation": "shift", "spec": { "network": { - "id": "l3-network.id", - "name": "l3-network.name", - "admin_state_up": "l3-network.AdminState", - "shared": "l3-network.sharedNetwork", - "status": "l3-network.status", - "subnets": "l3-network.subnets", - "tenant_id": "l3-network.tenantId" + "id": "id", + "name": "name", + "admin_state_up": "tempList[].adminState", + "shared": "tempList[].sharedNetwork", + "status": "tempList[].status", + "subnets" : { + "*": "tempList[].subnets" + }, + "tenant_id" : "tempList[].tenantId" } } }, { - "operation": "default", + "operation": "shift", "spec": { + "tempList": { + "*": { + "*" : { + "$": "attributeList[#3].name", + "@": "attributeList[#3].value" + }, + "#ok": "attributeList[#2].dataQuality.status" + } + }, "*": { - "host-status": "UNKNOWN" - } - } - } + "@" : "&" + }, + "#l3-network": "type", + "#ok": "dataQuality.status" + } + } -] +]
\ No newline at end of file |