diff options
author | 2019-02-11 17:00:46 +0000 | |
---|---|---|
committer | 2019-02-11 17:01:03 +0000 | |
commit | d8850d592f42d16a7d3d8d0c4ae1c64badf0b439 (patch) | |
tree | 8cbf50caeda36a39becef612fc3ed02809b777c5 /pomba/network-discovery/config/jolt | |
parent | c727082e6809f7a3076809dceb218e80ce4456bf (diff) |
Add support for Openstack Port object
Issue-ID: SDNC-475
Change-Id: Id17404ed05b2ca251e46dc739657900953f76cc4
Signed-off-by: Norm Traxler <normant@amdocs.com>
Diffstat (limited to 'pomba/network-discovery/config/jolt')
-rw-r--r-- | pomba/network-discovery/config/jolt/l3-network.json | 2 | ||||
-rw-r--r-- | pomba/network-discovery/config/jolt/port.json | 33 |
2 files changed, 34 insertions, 1 deletions
diff --git a/pomba/network-discovery/config/jolt/l3-network.json b/pomba/network-discovery/config/jolt/l3-network.json index 77fa4aa..bf4f637 100644 --- a/pomba/network-discovery/config/jolt/l3-network.json +++ b/pomba/network-discovery/config/jolt/l3-network.json @@ -5,7 +5,7 @@ "network": { "id": "id", "name": "name", - "admin_state_up": "tempList[].adminState", + "admin_state_up": "tempList[].adminStateUp", "shared": "tempList[].sharedNetwork", "status": "tempList[].status", "subnets" : { diff --git a/pomba/network-discovery/config/jolt/port.json b/pomba/network-discovery/config/jolt/port.json new file mode 100644 index 0000000..99597b5 --- /dev/null +++ b/pomba/network-discovery/config/jolt/port.json @@ -0,0 +1,33 @@ +[ + { + "operation": "shift", + "spec": { + "port": { + "id": "id", + "name": "name", + "admin_state_up": "tempList[].adminStateUp", + "mac_address" : "tempList[].macAddress" + } + } + }, + { + "operation": "shift", + "spec": { + "tempList": { + "*": { + "*" : { + "$": "attributeList[#3].name", + "@": "attributeList[#3].value" + }, + "#ok": "attributeList[#2].dataQuality.status" + } + }, + "*": { + "@" : "&" + }, + "#port": "type", + "#ok": "dataQuality.status" + } + } + +]
\ No newline at end of file |