From 8f2fcdaf36cc05480d0d8c03d0d54368e7a851f6 Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Wed, 2 Dec 2020 07:48:49 -0500 Subject: 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 Change-Id: If58175bd2519955cd896290cac7001df4eb62287 --- .../lib/anr-changes-from-policy-to-sdnr.map | 5 ++ .../lib/anr-pci-changes-from-policy-to-sdnr.vt | 8 ++ .../dmaap-listener/lib/edgeRouterStatusChange.map | 44 +++++++++ .../dmaap-listener/lib/esr-thirdparty-sdnc.map | 5 ++ northbound/dmaap-listener/lib/generic-vnf.map | 5 ++ northbound/dmaap-listener/lib/input.map | 1 + northbound/dmaap-listener/lib/log4j2.xml | 26 ++++++ .../lib/pci-changes-from-policy-to-sdnr.map | 5 ++ northbound/dmaap-listener/lib/preferredRoute.txt | 1 + northbound/dmaap-listener/lib/pserver.map | 5 ++ .../lib/template-esr-thirdparty-sdnc.vt | 100 +++++++++++++++++++++ .../dmaap-listener/lib/template-generic-vnf.vt | 11 +++ northbound/dmaap-listener/lib/template-pserver.vt | 11 +++ 13 files changed, 227 insertions(+) create mode 100644 northbound/dmaap-listener/lib/anr-changes-from-policy-to-sdnr.map create mode 100644 northbound/dmaap-listener/lib/anr-pci-changes-from-policy-to-sdnr.vt create mode 100644 northbound/dmaap-listener/lib/edgeRouterStatusChange.map create mode 100644 northbound/dmaap-listener/lib/esr-thirdparty-sdnc.map create mode 100644 northbound/dmaap-listener/lib/generic-vnf.map create mode 100644 northbound/dmaap-listener/lib/input.map create mode 100644 northbound/dmaap-listener/lib/log4j2.xml create mode 100644 northbound/dmaap-listener/lib/pci-changes-from-policy-to-sdnr.map create mode 100644 northbound/dmaap-listener/lib/preferredRoute.txt create mode 100644 northbound/dmaap-listener/lib/pserver.map create mode 100644 northbound/dmaap-listener/lib/template-esr-thirdparty-sdnc.vt create mode 100644 northbound/dmaap-listener/lib/template-generic-vnf.vt create mode 100644 northbound/dmaap-listener/lib/template-pserver.vt (limited to 'northbound/dmaap-listener/lib') 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 @@ + + + + + $${env:LOGDIR:-logs} + + + + + + + + + + + + + + + + + + + + \ 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 -- cgit 1.2.3-korg