diff options
author | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2018-10-03 15:08:34 -0400 |
---|---|---|
committer | Mohammadreza Pasandideh <mohammadreza.pasandideh@amdocs.com> | 2018-10-09 15:36:22 -0400 |
commit | a2423cf3ba54da34bb865befd44d56bbb925a94b (patch) | |
tree | 6d4ac22b24f3f33087edc3e7c077ef3d6ad96469 /config | |
parent | 2fb09922810847108464ba52e5b68907d5176e7a (diff) |
POMBA: SDNC Context Builder
Initial code for POMBA: SDNC Context Builder
Issue-ID: LOG-520
Change-Id: I6b06561b9050acc83b0c2b18b21c94f0f13f63e4
Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/application.properties | 48 | ||||
-rw-r--r-- | config/logback.xml | 48 | ||||
-rw-r--r-- | config/sdnccontextbuilder.spec | 76 |
3 files changed, 172 insertions, 0 deletions
diff --git a/config/application.properties b/config/application.properties new file mode 100644 index 0000000..6ad4731 --- /dev/null +++ b/config/application.properties @@ -0,0 +1,48 @@ +/* + * ============LICENSE_START=================================================== + * Copyright (c) 2018 Amdocs + * ============================================================================ + * 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===================================================== + */ + +spring.jersey.type=filter +spring.mvc.urls=swagger,docs,prometheus,auditevents,info,heapdump,autoconfig,beans,loggers,dump,env,trace,health,configprops,mappings,metrics,webjars + + +server.contextPath=/sdnccontextbuilder/v1 +spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration + +#This property is used to set the Tomcat connector attributes.developers can define multiple attributes separated by comma +#tomcat.connector.attributes=allowTrace-true +#The max number of active threads in this pool +server.tomcat.max-threads=200 +#The minimum number of threads always kept alive +server.tomcat.min-spare-threads=25 + +# Basic Authorization credentials for SDNC Context Builder REST Service +sdncCtxBuilder.userId=admin +sdncCtxBuilder.password=OBF:1u2a1toa1w8v1tok1u30 + +# SDNC REST Client Configuration +sdnc.serviceName=10.69.100.139 +sdnc.servicePort=30202 +sdnc.httpProtocol=http +sdnc.user=admin +sdnc.password=OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1mli1sop1k8o1j651vu91mxw1vun1mze1vv11j8x1k5i1sp11mjc1y161hlr1gm41m111nkj1z781pw31kku1r4p1e391r571pbm1o741l4x1ksp +sdnc.connectionTimeout=5000 +sdnc.readTimeout=1000 +sdnc.genericResourcePath=/restconf/config/GENERIC-RESOURCE-API:services/service/{0} + +#Servlet context parameters +server.context_parameters.p-name=value #context parameter with p-name as key and value as value. diff --git a/config/logback.xml b/config/logback.xml new file mode 100644 index 0000000..2f53172 --- /dev/null +++ b/config/logback.xml @@ -0,0 +1,48 @@ +/* + * ============LICENSE_START=================================================== + * Copyright (c) 2018 Amdocs + * ============================================================================ + * 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===================================================== + */ + +<configuration> + <property name="p_tim" value="%d{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX", UTC}"/> + <property name="p_lvl" value="%level"/> + <property name="p_log" value="%logger"/> + <property name="p_mdc" value="%replace(%replace(%mdc){'\t','\\\\t'}){'\n', '\\\\n'}"/> + <property name="p_msg" value="%replace(%replace(%msg){'\t', '\\\\t'}){'\n','\\\\n'}"/> + <property name="p_exc" value="%replace(%replace(%rootException){'\t', '\\\\t'}){'\n','\\\\n'}"/> + <!-- tabs --> + <property name="p_mak" value="%replace(%replace(%marker){'\t', '\\\\t'}){'\n','\\\\n'}"/> + <property name="p_thr" value="%thread"/> + <property name="pattern" value="%nopexception${p_tim}\t${p_thr}\t${p_lvl}\t${p_log}\t${p_mdc}\t${p_msg}\t${p_exc}\t${p_mak}\t%n"/> + <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> + <encoder> + <pattern>${pattern}</pattern> + </encoder> + </appender> + <appender name="FILE" class="ch.qos.logback.core.FileAppender"> + <file>logs/output.log</file> + <encoder> + <pattern>${pattern}</pattern> + </encoder> + </appender> + <logger level="INFO" name="org.onap.logging.ref.slf4j" additivity="false"> + <appender-ref ref="STDOUT" /> + <appender-ref ref="FILE" /> + </logger> + <root level="INFO"> + <appender-ref ref="STDOUT" /> + </root> +</configuration> diff --git a/config/sdnccontextbuilder.spec b/config/sdnccontextbuilder.spec new file mode 100644 index 0000000..1f15b22 --- /dev/null +++ b/config/sdnccontextbuilder.spec @@ -0,0 +1,76 @@ +[
+ // Use https://jolt-demo.appspot.com/#inception to develop/test
+ // any changes to this file
+
+ {
+ // This section converts the updated json from service-decompostion
+ // to org.onap.pomba.common.datatypes.ModelContext
+ "operation": "shift",
+ "spec": {
+ "service": {
+ "*": {
+ "service-data": {
+ "service-topology": {
+ "service-topology-identifier": {
+ "service-instance-id": "service.uuid",
+ "service-instance-name": "service.name"
+ },
+ "onap-model-information": {
+ "model-invariant-uuid": "service.invariantUUID"
+ }
+ },
+ "vnfs": {
+ "vnf": {
+ "*": {
+ "vnf-data": {
+ "vnf-topology": {
+ "onap-model-information": {
+ "model-uuid": "vfList[&4].uuid",
+ "model-invariant-uuid": "vfList[&4].invariantUUID"
+ },
+ "vnf-topology-identifier-structure": {
+ "vnf-type": "vfList[&4].type",
+ "vnf-name": "vfList[&4].name"
+ }
+ },
+ "vf-modules": {
+ "vf-module": {
+ "*": {
+ "vf-module-data": {
+ "vf-module-topology": {
+ "vf-module-topology-identifier": {
+ "vf-module-name": "vfList[&8].vfModuleList[&4].name"
+ },
+ "onap-model-information": {
+ "model-uuid": "vfList[&8].vfModuleList[&4].uuid",
+ "model-invariant-uuid": "vfList[&8].vfModuleList[&4].invariantUUID"
+ },
+ "vf-module-assignments": {
+ "vms": {
+ "vm": {
+ "*": {
+ "vm-names": {
+ "vm-name": {
+ "@(2,vm-type)": "vfList[&13].vfModuleList[&9].vmList[&3].nfNamingCode",
+ "*": "vfList[&13].vfModuleList[&9].vmList[&3].name"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ ]
|