summaryrefslogtreecommitdiffstats
path: root/pomba/network-discovery/config
diff options
context:
space:
mode:
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