From 11a3345cf03c2ad820fa40440dbe4c89eb963b26 Mon Sep 17 00:00:00 2001 From: Jessica Wagantall Date: Mon, 13 Aug 2018 23:42:40 +0000 Subject: Add RestConf Collector Issue-ID: DCAEGEN2-612 1. Instantiated to support CCVPN Close Loop Use Case 2. In general, this supports data collection from all PNF or devices that supports RestConf protocol Change-Id: I6311ad618e8d68badc5423a63d7781a19dc62829 Signed-off-by: rama-huawei --- etc/DmaapConfig.json | 12 ++ etc/collector.properties | 22 +++ etc/establish-subscription-input-template.json | 5 + etc/log4j.xml | 188 +++++++++++++++++++++++++ etc/passwordfile | 1 + 5 files changed, 228 insertions(+) create mode 100755 etc/DmaapConfig.json create mode 100755 etc/collector.properties create mode 100755 etc/establish-subscription-input-template.json create mode 100755 etc/log4j.xml create mode 100755 etc/passwordfile (limited to 'etc') diff --git a/etc/DmaapConfig.json b/etc/DmaapConfig.json new file mode 100755 index 0000000..5176cea --- /dev/null +++ b/etc/DmaapConfig.json @@ -0,0 +1,12 @@ +{ + "channels": [ + { + "name": "route_failure", + "cambria.topic": "unauthenticated.DCAE_RESTCONF_COL_OUTPUT", + "class": "HpCambriaOutputStream", + "stripHpId": "true", + "type": "out", + "cambria.hosts": "onap-message-router" + } + ] +} diff --git a/etc/collector.properties b/etc/collector.properties new file mode 100755 index 0000000..a013578 --- /dev/null +++ b/etc/collector.properties @@ -0,0 +1,22 @@ +############################################################################### +## +## Collector config +## +## - Default values are shown as commented settings. +## +############################################################################### +## Processing +collector.dmaapfile=./etc/DmaapConfig.json +############################################################################### +## +## Tomcat control +## +#tomcat.maxthreads=(tomcat default, which is usually 200) +# list all restconf collector parameters +templateFileName=./etc/establish-subscription-input-template.json +restapiUrl=10.0.4.1:8080;10.0.4.2:8080 +httpMethod=post +responsePrefix=restapi-result +skipSending=false +sseConnectURL=http://10.0.4.1:8080/RestConfServer/rest/ssevents; http://10.0.4.2:8080/RestConfServer/rest/ssevents +format=json diff --git a/etc/establish-subscription-input-template.json b/etc/establish-subscription-input-template.json new file mode 100755 index 0000000..c47ba01 --- /dev/null +++ b/etc/establish-subscription-input-template.json @@ -0,0 +1,5 @@ +{ + "ietf-subscribed-notification:input": { + "encoding": "encoding-json" + } +} diff --git a/etc/log4j.xml b/etc/log4j.xml new file mode 100755 index 0000000..3e3b132 --- /dev/null +++ b/etc/log4j.xml @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/etc/passwordfile b/etc/passwordfile new file mode 100755 index 0000000..702a4cb --- /dev/null +++ b/etc/passwordfile @@ -0,0 +1 @@ +collector -- cgit 1.2.3-korg