summaryrefslogtreecommitdiffstats
path: root/pomba/network-discovery/config
diff options
context:
space:
mode:
authorNorm Traxler <normant@amdocs.com>2019-02-11 17:00:46 +0000
committerNorm Traxler <normant@amdocs.com>2019-02-11 17:01:03 +0000
commitd8850d592f42d16a7d3d8d0c4ae1c64badf0b439 (patch)
tree8cbf50caeda36a39becef612fc3ed02809b777c5 /pomba/network-discovery/config
parentc727082e6809f7a3076809dceb218e80ce4456bf (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')
-rw-r--r--pomba/network-discovery/config/application.properties3
-rw-r--r--pomba/network-discovery/config/jolt/l3-network.json2
-rw-r--r--pomba/network-discovery/config/jolt/port.json33
3 files changed, 36 insertions, 2 deletions
diff --git a/pomba/network-discovery/config/application.properties b/pomba/network-discovery/config/application.properties
index b7d41b7..9e822bf 100644
--- a/pomba/network-discovery/config/application.properties
+++ b/pomba/network-discovery/config/application.properties
@@ -19,9 +19,10 @@ openstack.identity.url = http://10.69.100.11:5000/v3/auth/tokens
openstack.identity.user = jbalasub
openstack.identity.password = OBF:1thj1vn01v1p1toq1to41v2p1vo21th3
-openstack.types = vserver, l3-network
+openstack.types = vserver, l3-network, port
openstack.type.vserver.url = http://10.69.100.11:8774/v2.1/servers/{0}
openstack.type.l3-network.url = http://10.69.100.11:9696/v2.0/networks/{0}
+openstack.type.port.url = http://10.69.100.11:9696/v2.0/ports/{0}
openstack.api.microversion = 2.42
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