summaryrefslogtreecommitdiffstats
path: root/northbound/dmaap-listener/lib
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2020-12-02 07:48:49 -0500
committerDan Timoney <dtimoney@att.com>2020-12-02 11:11:13 -0500
commit8f2fcdaf36cc05480d0d8c03d0d54368e7a851f6 (patch)
tree6e7f0cef4cc3523c0b9ba0e28e249db41b993655 /northbound/dmaap-listener/lib
parentff3eecb980bfdc8d43d2ed3a4c786d634fa6f4e2 (diff)
Add missing pom.xml files
Add missing modules to top level pom.xml and add missing pom files for core, adaptors, northbound and plugin directories. Also rolled version to next minor version (1.2.0-SNAPSHOT) to avoid conflict with compiled code from individual repos during transition to new structure. Issue-ID: CCSDK-3009 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: If58175bd2519955cd896290cac7001df4eb62287
Diffstat (limited to 'northbound/dmaap-listener/lib')
-rw-r--r--northbound/dmaap-listener/lib/anr-changes-from-policy-to-sdnr.map5
-rw-r--r--northbound/dmaap-listener/lib/anr-pci-changes-from-policy-to-sdnr.vt8
-rw-r--r--northbound/dmaap-listener/lib/edgeRouterStatusChange.map44
-rw-r--r--northbound/dmaap-listener/lib/esr-thirdparty-sdnc.map5
-rw-r--r--northbound/dmaap-listener/lib/generic-vnf.map5
-rw-r--r--northbound/dmaap-listener/lib/input.map1
-rw-r--r--northbound/dmaap-listener/lib/log4j2.xml26
-rw-r--r--northbound/dmaap-listener/lib/pci-changes-from-policy-to-sdnr.map5
-rw-r--r--northbound/dmaap-listener/lib/preferredRoute.txt1
-rw-r--r--northbound/dmaap-listener/lib/pserver.map5
-rw-r--r--northbound/dmaap-listener/lib/template-esr-thirdparty-sdnc.vt100
-rw-r--r--northbound/dmaap-listener/lib/template-generic-vnf.vt11
-rw-r--r--northbound/dmaap-listener/lib/template-pserver.vt11
13 files changed, 227 insertions, 0 deletions
diff --git a/northbound/dmaap-listener/lib/anr-changes-from-policy-to-sdnr.map b/northbound/dmaap-listener/lib/anr-changes-from-policy-to-sdnr.map
new file mode 100644
index 000000000..5cd2b8371
--- /dev/null
+++ b/northbound/dmaap-listener/lib/anr-changes-from-policy-to-sdnr.map
@@ -0,0 +1,5 @@
+# SDN-C URL
+SDNC.endpoint => SLI-API:execute-graph
+
+# Field mapping
+SDNC.template => anr-pci-changes-from-policy-to-sdnr.vt
diff --git a/northbound/dmaap-listener/lib/anr-pci-changes-from-policy-to-sdnr.vt b/northbound/dmaap-listener/lib/anr-pci-changes-from-policy-to-sdnr.vt
new file mode 100644
index 000000000..1ded88dc7
--- /dev/null
+++ b/northbound/dmaap-listener/lib/anr-pci-changes-from-policy-to-sdnr.vt
@@ -0,0 +1,8 @@
+{
+ "input": {
+ "module-name": "oofpcipoc-api",
+ "rpc-name": "$rpc_name",
+ "mode": "sync",
+ "sli-parameter": $sli_parameters
+ }
+}
diff --git a/northbound/dmaap-listener/lib/edgeRouterStatusChange.map b/northbound/dmaap-listener/lib/edgeRouterStatusChange.map
new file mode 100644
index 000000000..fa5ff0784
--- /dev/null
+++ b/northbound/dmaap-listener/lib/edgeRouterStatusChange.map
@@ -0,0 +1,44 @@
+# SDN-C URL
+SDNC.endpoint => FLOWRED-API:process-edge-router-status-change
+
+# Field mapping
+equip_id => equip_id
+ptnii_equip_name => equip-name
+equip_type.equip_type => equip-type
+ip_addr => loopback0
+router_prov_status => prov-status
+country.region => region
+country_abbr => country
+equip_name_code => equip-name-code
+as_number => as-number
+loopback1 => loopback1
+loopback2 => loopback2
+loopback3 => loopback3
+loopback40 => loopback40
+loopback65535 => loopback65535
+inms_list => inms-list
+encrypted_access_flag => encrypted-access-flag
+sw_name => sw-name
+nmipaddr => nm-addr
+function_code => function-code
+
+EquipmentId => equip-id
+PTNIIEquipmentName => equip-name
+EquipmentType => equip-type
+Loopback0 => loopback0
+RouterStatus => prov-status
+Region => region
+CountryAbbreviation => country
+EquipmentNameCode => equip-name-code
+ASNumber => as-number
+SoftwareName => sw-name
+NetworkManagementIPAddress => nm-addr
+FunctionCode => function-code
+Loopback1 => loopback1
+Loopback2 => loopback2
+Loopback3 => loopback3
+Loopback40 => loopback40
+Loopback65535 => loopback65535
+InmsList => inms-list
+EncryptedAccessFlag => encrypted-access-flag
+
diff --git a/northbound/dmaap-listener/lib/esr-thirdparty-sdnc.map b/northbound/dmaap-listener/lib/esr-thirdparty-sdnc.map
new file mode 100644
index 000000000..603645ebe
--- /dev/null
+++ b/northbound/dmaap-listener/lib/esr-thirdparty-sdnc.map
@@ -0,0 +1,5 @@
+# SDN-C URL
+SDNC.endpoint => DataChange:data-change-notification
+
+# Field mapping
+SDNC.template => template-esr-thirdparty-sdnc.vt
diff --git a/northbound/dmaap-listener/lib/generic-vnf.map b/northbound/dmaap-listener/lib/generic-vnf.map
new file mode 100644
index 000000000..bc375eb28
--- /dev/null
+++ b/northbound/dmaap-listener/lib/generic-vnf.map
@@ -0,0 +1,5 @@
+# SDN-C URL
+SDNC.endpoint => config-selfservice-api:notification-callback
+
+# Field mapping
+SDNC.template => template-generic-vnf.vt
diff --git a/northbound/dmaap-listener/lib/input.map b/northbound/dmaap-listener/lib/input.map
new file mode 100644
index 000000000..9ae9bf6e8
--- /dev/null
+++ b/northbound/dmaap-listener/lib/input.map
@@ -0,0 +1 @@
+SDNC \ No newline at end of file
diff --git a/northbound/dmaap-listener/lib/log4j2.xml b/northbound/dmaap-listener/lib/log4j2.xml
new file mode 100644
index 000000000..01ee93714
--- /dev/null
+++ b/northbound/dmaap-listener/lib/log4j2.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<Configuration status="debug">
+ <Properties>
+ <Property name="logDir">$${env:LOGDIR:-logs}</Property>
+ </Properties>
+ <Appenders>
+ <RollingFile name="LOGFILE" fileName="${logDir}/dmaap-listener.log"
+ filePattern="${logDir}/dmaap-listener-%i.log">
+ <PatternLayout pattern="%p %d{yyyy-MM-dd HH:mm:ss.SSS Z} %c{1} - %m%n" />
+ <Policies>
+ <SizeBasedTriggeringPolicy size="10 MB" />
+ </Policies>
+ <DefaultRolloverStrategy max="10"/>
+ </RollingFile>
+ <Console name="CONSOLE" target="SYSTEM_OUT">
+ <PatternLayout pattern="%p %d{yyyy-MM-dd HH:mm:ss.SSS Z} %c{1} - %m%n" />
+ </Console>
+ </Appenders>
+ <Loggers>
+ <Root level="debug">
+ <AppenderRef ref="LOGFILE"/>
+ <AppenderRef ref="CONSOLE"/>
+ </Root>
+ </Loggers>
+</Configuration> \ No newline at end of file
diff --git a/northbound/dmaap-listener/lib/pci-changes-from-policy-to-sdnr.map b/northbound/dmaap-listener/lib/pci-changes-from-policy-to-sdnr.map
new file mode 100644
index 000000000..5cd2b8371
--- /dev/null
+++ b/northbound/dmaap-listener/lib/pci-changes-from-policy-to-sdnr.map
@@ -0,0 +1,5 @@
+# SDN-C URL
+SDNC.endpoint => SLI-API:execute-graph
+
+# Field mapping
+SDNC.template => anr-pci-changes-from-policy-to-sdnr.vt
diff --git a/northbound/dmaap-listener/lib/preferredRoute.txt b/northbound/dmaap-listener/lib/preferredRoute.txt
new file mode 100644
index 000000000..662b0aa7d
--- /dev/null
+++ b/northbound/dmaap-listener/lib/preferredRoute.txt
@@ -0,0 +1 @@
+preferredRouteKey=MR1 \ No newline at end of file
diff --git a/northbound/dmaap-listener/lib/pserver.map b/northbound/dmaap-listener/lib/pserver.map
new file mode 100644
index 000000000..8b3e463e7
--- /dev/null
+++ b/northbound/dmaap-listener/lib/pserver.map
@@ -0,0 +1,5 @@
+# SDN-C URL
+SDNC.endpoint => config-selfservice-api:notification-callback
+
+# Field mapping
+SDNC.template => template-pserver.vt
diff --git a/northbound/dmaap-listener/lib/template-esr-thirdparty-sdnc.vt b/northbound/dmaap-listener/lib/template-esr-thirdparty-sdnc.vt
new file mode 100644
index 000000000..225fce026
--- /dev/null
+++ b/northbound/dmaap-listener/lib/template-esr-thirdparty-sdnc.vt
@@ -0,0 +1,100 @@
+{
+ "DataChange:input": {
+ "DataChange:aai-node-type": "$entitytype",
+ "DataChange:selflink": "$entitylink",
+ "DataChange:aai-event-id": "$id",
+ "DataChange:aai-event-trigger": "$action",
+ "DataChange:key-data": [{
+ "DataChange:key-name": "thirdparty-sdnc-id",
+ "DataChange:key-value": "$thirdpartysdncid"
+ },
+ {
+ "DataChange:key-name": "resource-version",
+ "DataChange:key-value": "$resourceversion"
+ },
+ {
+ "DataChange:key-name": "location",
+ "DataChange:key-value": "$location"
+ },
+ {
+ "DataChange:key-name": "product-name",
+ "DataChange:key-value": "$productname"
+ },
+ {
+ "DataChange:key-name": "esr-system-info-id",
+ "DataChange:key-value": "$esrsysteminfoid"
+ },
+ {
+ "DataChange:key-name": "system-type",
+ "DataChange:key-value": "$systemtype"
+ },
+ {
+ "DataChange:key-name": "service-url",
+ "DataChange:key-value": "$serviceurl"
+ },
+ {
+ "DataChange:key-name": "ssl-cacert",
+ "DataChange:key-value": "$sslcacert"
+ },
+ {
+ "DataChange:key-name": "type",
+ "DataChange:key-value": "$type"
+ },
+ {
+ "DataChange:key-name": "ssl-insecure",
+ "DataChange:key-value": "$sslinsecure"
+ },
+ {
+ "DataChange:key-name": "system-status",
+ "DataChange:key-value": "$systemstatus"
+ },
+ {
+ "DataChange:key-name": "version",
+ "DataChange:key-value": "$version"
+ },
+ {
+ "DataChange:key-name": "passive",
+ "DataChange:key-value": "$passive"
+ },
+ {
+ "DataChange:key-name": "password",
+ "DataChange:key-value": "$password"
+ },
+ {
+ "DataChange:key-name": "protocol",
+ "DataChange:key-value": "$protocol"
+ },
+ {
+ "DataChange:key-name": "ip-address",
+ "DataChange:key-value": "$ipaddress"
+ },
+ {
+ "DataChange:key-name": "cloud-domain",
+ "DataChange:key-value": "$clouddomain"
+ },
+ {
+ "DataChange:key-name": "user-name",
+ "DataChange:key-value": "$username"
+ },
+ {
+ "DataChange:key-name": "system-name",
+ "DataChange:key-value": "$systemname"
+ },
+ {
+ "DataChange:key-name": "port",
+ "DataChange:key-value": "$port"
+ },
+ {
+ "DataChange:key-name": "vendor",
+ "DataChange:key-value": "$vendor"
+ },
+ {
+ "DataChange:key-name": "remote-path",
+ "DataChange:key-value": "$remotepath"
+ },
+ {
+ "DataChange:key-name": "default-tenant",
+ "DataChange:key-value": "$defaulttenant"
+ }]
+ }
+}
diff --git a/northbound/dmaap-listener/lib/template-generic-vnf.vt b/northbound/dmaap-listener/lib/template-generic-vnf.vt
new file mode 100644
index 000000000..d57c9a0a4
--- /dev/null
+++ b/northbound/dmaap-listener/lib/template-generic-vnf.vt
@@ -0,0 +1,11 @@
+{
+ "input": {
+ "common-header": {
+ "request-id": "$req_id",
+ "timestamp": "$curr_time",
+ "originator-id": "AAI",
+ "api-ver": "2.00"
+ },
+ "payload": $full_message
+ }
+} \ No newline at end of file
diff --git a/northbound/dmaap-listener/lib/template-pserver.vt b/northbound/dmaap-listener/lib/template-pserver.vt
new file mode 100644
index 000000000..d57c9a0a4
--- /dev/null
+++ b/northbound/dmaap-listener/lib/template-pserver.vt
@@ -0,0 +1,11 @@
+{
+ "input": {
+ "common-header": {
+ "request-id": "$req_id",
+ "timestamp": "$curr_time",
+ "originator-id": "AAI",
+ "api-ver": "2.00"
+ },
+ "payload": $full_message
+ }
+} \ No newline at end of file