aboutsummaryrefslogtreecommitdiffstats
path: root/UniversalVesAdapter/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'UniversalVesAdapter/src/main/resources')
-rw-r--r--UniversalVesAdapter/src/main/resources/MapperConfig.json16
-rw-r--r--UniversalVesAdapter/src/main/resources/MapperConfigFullFormat.json56
-rw-r--r--UniversalVesAdapter/src/main/resources/application.properties10
-rw-r--r--UniversalVesAdapter/src/main/resources/dme2/consumer.properties61
-rw-r--r--UniversalVesAdapter/src/main/resources/dme2/preferredRoute.properties5
-rw-r--r--UniversalVesAdapter/src/main/resources/dme2/producer.properties59
6 files changed, 207 insertions, 0 deletions
diff --git a/UniversalVesAdapter/src/main/resources/MapperConfig.json b/UniversalVesAdapter/src/main/resources/MapperConfig.json
new file mode 100644
index 0000000..e39c822
--- /dev/null
+++ b/UniversalVesAdapter/src/main/resources/MapperConfig.json
@@ -0,0 +1,16 @@
+{
+ "entries" : [
+ {
+ "priority" : 1,
+ "evaluation" : {
+ "operand" : "EQUALS",
+ "field" : "notify OID",
+ "value" : ".1.3.6.1.4.1.74.2.46.12.1.1",
+ "datatype" : "string",
+ "lhs" : null,
+ "rhs" : null
+ },
+ "result" : "snmp"
+ }
+ ]
+} \ No newline at end of file
diff --git a/UniversalVesAdapter/src/main/resources/MapperConfigFullFormat.json b/UniversalVesAdapter/src/main/resources/MapperConfigFullFormat.json
new file mode 100644
index 0000000..059dc2e
--- /dev/null
+++ b/UniversalVesAdapter/src/main/resources/MapperConfigFullFormat.json
@@ -0,0 +1,56 @@
+{
+ "entries" : [
+ {
+ "priority" : 1,
+ "evaluation" : {
+ "operand" : "EQUALS",
+ "field" : "notify OID",
+ "value" : ".1.3.6.1.4.1.74.2.46.12.1.1",
+ "datatype" : "string",
+ "lhs" : null,
+ "rhs" : null
+ },
+ "result" : "snmpTrapToVes.xml"
+ },
+ {
+ "priority" : 2,
+ "evaluation" : {
+ "operand" : "AND",
+ "field" : null,
+ "value" : null,
+ "datatype" : null,
+ "lhs" : {
+ "operand" : "OR",
+ "field" : null,
+ "value" : null,
+ "datatype" : null,
+ "lhs" : {
+ "operand" : "EQUALS",
+ "field" : "domain",
+ "value" : "snmp-heartbeat",
+ "datatype" : "string",
+ "lhs" : null,
+ "rhs" : null
+ },
+ "rhs" : {
+ "operand" : "EQUALS",
+ "field" : "domain",
+ "value" : "snmp-fault",
+ "datatype" : "string",
+ "lhs" : null,
+ "rhs" : null
+ }
+ },
+ "rhs" : {
+ "operand" : "EQUALS",
+ "field" : "trap version",
+ "value" : "1.2",
+ "datatype" : "float",
+ "lhs" : null,
+ "rhs" : null
+ }
+ },
+ "result" : "smooks.config"
+ }
+ ]
+} \ No newline at end of file
diff --git a/UniversalVesAdapter/src/main/resources/application.properties b/UniversalVesAdapter/src/main/resources/application.properties
new file mode 100644
index 0000000..a0c32b4
--- /dev/null
+++ b/UniversalVesAdapter/src/main/resources/application.properties
@@ -0,0 +1,10 @@
+logging.level.org.springframework.web=ERROR
+logging.level.org.onap.universalvesadapter=DEBUG
+dmaap.url=http://localhost:8091/greeting
+snmpTrap.configFile=snmpTrapToVes.xml
+universal.configFiles=snmp:snmpTrapToVes.xml,default:defaultConfig.xml
+fileService.url=http://localhost:8888/fileAsString/
+messagesInBatch=1000
+dmaap.consumer_props=/src/main/resources/dme2/consumer.properties
+dmaap.publisher_props=/src/main/resources/dme2/publisher.properties
+server.port=8091 \ No newline at end of file
diff --git a/UniversalVesAdapter/src/main/resources/dme2/consumer.properties b/UniversalVesAdapter/src/main/resources/dme2/consumer.properties
new file mode 100644
index 0000000..6ba59d1
--- /dev/null
+++ b/UniversalVesAdapter/src/main/resources/dme2/consumer.properties
@@ -0,0 +1,61 @@
+<!DOCTYPE HTML>
+<!DOCTYPE html PUBLIC "" ""><HTML><HEAD>
+<META http-equiv="Content-Type" content="text/html; charset=utf-8"></HEAD>
+<BODY>
+<PRE>###############################################################################
+# ============LICENSE_START=======================================================
+# org.onap.dmaap
+# ================================================================================
+# Copyright � 2017 AT&amp;T Intellectual Property. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=========================================================
+#
+# ECOMP is a trademark and service mark of AT&amp;T Intellectual Property.
+#
+###############################################################################
+TransportType=DME2
+Latitude =47.778998
+Longitude =-122.182883
+Version =1.0
+ServiceName =dmaap-v1.dev.dmaap.dt.saat.acsi.att.com/events
+Environment =TEST
+Partner=BOT_R
+routeOffer=MR1
+SubContextPath =/
+Protocol =http
+MethodType =GET
+username =&lt;att uid&gt;
+password =&lt;password&gt;
+contenttype =application/json
+authKey=&lt;auth key&gt;
+authDate=2016-02-18T13:57:37-0800
+#host=uebsb91bodc.it.att.com:3904
+host=&lt;host&gt;:&lt;port&gt;
+topic=com.att.ecomp_test.crm.preDemo1
+group=con
+id=5
+timeout=15000
+limit=1000
+filter=
+AFT_DME2_EXCHANGE_REQUEST_HANDLERS=com.att.nsa.test.PreferredRouteRequestHandler
+AFT_DME2_EXCHANGE_REPLY_HANDLERS=com.att.nsa.test.PreferredRouteReplyHandler
+AFT_DME2_REQ_TRACE_ON=true
+AFT_ENVIRONMENT=AFTUAT
+AFT_DME2_EP_CONN_TIMEOUT=15000
+AFT_DME2_ROUNDTRIP_TIMEOUT_MS=240000
+AFT_DME2_EP_READ_TIMEOUT_MS=50000
+sessionstickinessrequired=NO
+DME2preferredRouterFilePath=/src/main/resources/dme2/preferredRoute.txt
+
+
+</PRE></BODY></HTML>
diff --git a/UniversalVesAdapter/src/main/resources/dme2/preferredRoute.properties b/UniversalVesAdapter/src/main/resources/dme2/preferredRoute.properties
new file mode 100644
index 0000000..506df76
--- /dev/null
+++ b/UniversalVesAdapter/src/main/resources/dme2/preferredRoute.properties
@@ -0,0 +1,5 @@
+<!DOCTYPE HTML>
+<!DOCTYPE html PUBLIC "" ""><HTML><HEAD>
+<META http-equiv="Content-Type" content="text/html; charset=utf-8"></HEAD>
+<BODY>
+<PRE>preferredRouteKey=MR1</PRE></BODY></HTML>
diff --git a/UniversalVesAdapter/src/main/resources/dme2/producer.properties b/UniversalVesAdapter/src/main/resources/dme2/producer.properties
new file mode 100644
index 0000000..fb9e639
--- /dev/null
+++ b/UniversalVesAdapter/src/main/resources/dme2/producer.properties
@@ -0,0 +1,59 @@
+<!DOCTYPE HTML>
+<!DOCTYPE html PUBLIC "" ""><HTML><HEAD>
+<META http-equiv="Content-Type" content="text/html; charset=utf-8"></HEAD>
+<BODY>
+<PRE>###############################################################################
+# ============LICENSE_START=======================================================
+# org.onap.dmaap
+# ================================================================================
+# Copyright � 2017 AT&amp;T Intellectual Property. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=========================================================
+#
+# ECOMP is a trademark and service mark of AT&amp;T Intellectual Property.
+#
+###############################################################################
+TransportType=DME2
+Latitude =47.778998
+Longitude =-122.182883
+Version =1.0
+ServiceName =dmaap-v1.dev.dmaap.dt.saat.acsi.att.com/events
+#com.att.acsi.saat.dt.dmaap.dev.mrclientnew1
+Environment =TEST
+Partner=BOT_R
+routeOffer=MR1
+SubContextPath =/
+Protocol =http
+MethodType =POST
+username =&lt;att uid&gt;
+password =&lt;global logon password&gt;
+contenttype = application/json
+authKey=&lt;auth key&gt;
+authDate=2016-07-20T11:30:56-0700
+host=&lt;host&gt;:&lt;port&gt;
+topic=com.att.ecomp_test.crm.preDemo1
+#host=uebsb91bodc.it.att.com:3904
+partition=1
+maxBatchSize=100
+maxAgeMs=250
+AFT_DME2_EXCHANGE_REQUEST_HANDLERS=com.att.nsa.test.PreferredRouteRequestHandler
+AFT_DME2_EXCHANGE_REPLY_HANDLERS=com.att.nsa.test.PreferredRouteReplyHandler
+AFT_DME2_REQ_TRACE_ON=true
+AFT_ENVIRONMENT=AFTUAT
+AFT_DME2_EP_CONN_TIMEOUT=15000
+AFT_DME2_ROUNDTRIP_TIMEOUT_MS=240000
+AFT_DME2_EP_READ_TIMEOUT_MS=50000
+sessionstickinessrequired=NO
+DME2preferredRouterFilePath=/src/main/resources/dme2/preferredRoute.txt
+MessageSentThreadOccurance=50
+</PRE></BODY></HTML>