From d407638086b08c3de199cbef5e717fb16556077c Mon Sep 17 00:00:00 2001 From: Pooja03 Date: Fri, 23 Mar 2018 17:49:26 +0530 Subject: Added UniversalVesAdapter in the Mapper Adding full UniversalVesAdapter Module in Mapper Change-Id: I7edece763546b91700983554ffcf38f8ab945ae2 Issue-ID: DCAEGEN2-335 Signed-off-by: Pooja03 --- .../src/main/resources/MapperConfig.json | 16 ++++++ .../src/main/resources/MapperConfigFullFormat.json | 56 ++++++++++++++++++++ .../src/main/resources/application.properties | 10 ++++ .../src/main/resources/dme2/consumer.properties | 61 ++++++++++++++++++++++ .../main/resources/dme2/preferredRoute.properties | 5 ++ .../src/main/resources/dme2/producer.properties | 59 +++++++++++++++++++++ 6 files changed, 207 insertions(+) create mode 100644 UniversalVesAdapter/src/main/resources/MapperConfig.json create mode 100644 UniversalVesAdapter/src/main/resources/MapperConfigFullFormat.json create mode 100644 UniversalVesAdapter/src/main/resources/application.properties create mode 100644 UniversalVesAdapter/src/main/resources/dme2/consumer.properties create mode 100644 UniversalVesAdapter/src/main/resources/dme2/preferredRoute.properties create mode 100644 UniversalVesAdapter/src/main/resources/dme2/producer.properties (limited to 'UniversalVesAdapter/src/main/resources') 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 @@ + + + + +
###############################################################################
+#  ============LICENSE_START=======================================================
+#  org.onap.dmaap
+#  ================================================================================
+#  Copyright � 2017 AT&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&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 =<att uid>
+password =<password>
+contenttype =application/json
+authKey=<auth key>
+authDate=2016-02-18T13:57:37-0800
+#host=uebsb91bodc.it.att.com:3904
+host=<host>:<port>
+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
+
+
+
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 @@ + + + + +
preferredRouteKey=MR1
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 @@ + + + + +
###############################################################################
+#  ============LICENSE_START=======================================================
+#  org.onap.dmaap
+#  ================================================================================
+#  Copyright � 2017 AT&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&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 =<att uid>
+password =<global logon password>
+contenttype = application/json
+authKey=<auth key>
+authDate=2016-07-20T11:30:56-0700
+host=<host>:<port>
+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
+
-- cgit 1.2.3-korg