From 1ec4bf9a21ebdc17c1aa99985afb12d5b6ea4651 Mon Sep 17 00:00:00 2001 From: Skip Wonnell Date: Tue, 15 Aug 2017 20:42:44 -0500 Subject: Initial commit for appc-config-adaptor This bundle contains utilities used by config-generator. Change-Id: I04877ebe90536fd57368d00c033189c280e77c90 Signed-off-by: Skip Wonnell Issue-ID: APPC-67 --- .../provider/src/main/resources/adaptor.properties | 23 ++++ .../provider/src/main/resources/audit-request.xml | 33 ++++++ .../provider/src/main/resources/config-base.xml | 26 +++++ .../provider/src/main/resources/config-data.xml | 26 +++++ .../provider/src/main/resources/config-request.xml | 39 +++++++ .../provider/src/main/resources/prepare.xml | 122 +++++++++++++++++++++ 6 files changed, 269 insertions(+) create mode 100644 appc-config/appc-config-adaptor/provider/src/main/resources/adaptor.properties create mode 100644 appc-config/appc-config-adaptor/provider/src/main/resources/audit-request.xml create mode 100644 appc-config/appc-config-adaptor/provider/src/main/resources/config-base.xml create mode 100644 appc-config/appc-config-adaptor/provider/src/main/resources/config-data.xml create mode 100644 appc-config/appc-config-adaptor/provider/src/main/resources/config-request.xml create mode 100644 appc-config/appc-config-adaptor/provider/src/main/resources/prepare.xml (limited to 'appc-config/appc-config-adaptor/provider/src/main/resources') diff --git a/appc-config/appc-config-adaptor/provider/src/main/resources/adaptor.properties b/appc-config/appc-config-adaptor/provider/src/main/resources/adaptor.properties new file mode 100644 index 000000000..33fedfaed --- /dev/null +++ b/appc-config/appc-config-adaptor/provider/src/main/resources/adaptor.properties @@ -0,0 +1,23 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 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========================================================= +### + +configComponent.url= +configComponent.user= +configComponent.passwd= diff --git a/appc-config/appc-config-adaptor/provider/src/main/resources/audit-request.xml b/appc-config/appc-config-adaptor/provider/src/main/resources/audit-request.xml new file mode 100644 index 000000000..a5d0237ae --- /dev/null +++ b/appc-config/appc-config-adaptor/provider/src/main/resources/audit-request.xml @@ -0,0 +1,33 @@ + + + + APP-C + APP + ${request-id} + ${callback-url} + + ${equipment-name} + Netconf + N-SBG + ${audit-level} + + diff --git a/appc-config/appc-config-adaptor/provider/src/main/resources/config-base.xml b/appc-config/appc-config-adaptor/provider/src/main/resources/config-base.xml new file mode 100644 index 000000000..05827937a --- /dev/null +++ b/appc-config/appc-config-adaptor/provider/src/main/resources/config-base.xml @@ -0,0 +1,26 @@ + + + + ${operation} + + ${service-data} + + diff --git a/appc-config/appc-config-adaptor/provider/src/main/resources/config-data.xml b/appc-config/appc-config-adaptor/provider/src/main/resources/config-data.xml new file mode 100644 index 000000000..b24869936 --- /dev/null +++ b/appc-config/appc-config-adaptor/provider/src/main/resources/config-data.xml @@ -0,0 +1,26 @@ + + + + ${operation} + + ${service-data} + + diff --git a/appc-config/appc-config-adaptor/provider/src/main/resources/config-request.xml b/appc-config/appc-config-adaptor/provider/src/main/resources/config-request.xml new file mode 100644 index 000000000..d77d039b5 --- /dev/null +++ b/appc-config/appc-config-adaptor/provider/src/main/resources/config-request.xml @@ -0,0 +1,39 @@ + + + + APP-C + APP + ${request-id} + ${request-type} + ${callback-url} + ${action} + + ${equipment-name} + ${equipment-ip-address} + ${vendor} + + + + + diff --git a/appc-config/appc-config-adaptor/provider/src/main/resources/prepare.xml b/appc-config/appc-config-adaptor/provider/src/main/resources/prepare.xml new file mode 100644 index 000000000..b59c2e7de --- /dev/null +++ b/appc-config/appc-config-adaptor/provider/src/main/resources/prepare.xml @@ -0,0 +1,122 @@ + + + + create + + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].vnf-type} + ${service-data.vnf-config-information.vnf-host-ip-address} + ${service-data.service-information.service-instance-id} + ${service-data.vnf-config-information.ldap-ip-address} + ${service-data.vnf-config-information.tls-ca-certificate} + ${service-data.vnf-config-information.tls-client-certificate} + ${service-data.vnf-config-information.tls-client-key} + ${repeat:service-data.vnf-config-parameters-list.vnf-config-parameters[0].snmp-target-v3_length: + + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].snmp-target-v3[${1}].snmp-target-v3-id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].snmp-target-v3[${1}].snmp-target-ip-address} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].snmp-target-v3[${1}].snmp-security-level} + } + + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].escf-domain-name} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].dns-ip-address1} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].dns-ip-address2} + ${repeat:service-data.vnf-config-parameters-list.vnf-config-parameters[0].dia-realm-rf_length: + + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].dia-realm-rf[${1}].realm} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].dia-realm-rf[${1}].peer-ip-address} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].dia-realm-rf[${1}].peer-port} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].dia-realm-rf[${1}].local-port} + } + + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].ext-bgf-controller-interface-ip-address} + ${repeat:service-data.vnf-config-parameters-list.vnf-config-parameters[0].ext-bgf-control-link_length: + + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].ext-bgf-control-link[${1}].bgf-name} + } + + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].proxy-failover-delay} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].proxy-fallback-delay} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].proxy-polling-interval} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].fallback-mode} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].rf-interface-vlan-id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].rf-interface-nexthop-ip-address} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].rf-interface-subnet-mask-length} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].rf-local-ip-address} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].sctpmh-configuration-subnet-mask-length} + ${repeat:service-data.vnf-config-parameters-list.vnf-config-parameters[0].access-net-pcscf_length: + + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].access-net-pcscf[${1}].network-name} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].access-net-pcscf[${1}].id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].access-net-pcscf[${1}].network-id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].access-net-pcscf[${1}].proactive-transcoding-profile} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].access-net-pcscf[${1}].next-hop-ip-address} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].access-net-pcscf[${1}].subnet-mask-length} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].access-net-pcscf[${1}].vlan-id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].access-net-pcscf[${1}].sip-pa-termination-ip-address} + } + ${repeat:service-data.vnf-config-parameters-list.vnf-config-parameters[0].core-net-pcscf_length: + + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].core-net-pcscf[${1}].network-name} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].core-net-pcscf[${1}].id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].core-net-pcscf[${1}].network-id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].core-net-pcscf[${1}].next-hop-ip-address} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].core-net-pcscf[${1}].subnet-mask-length} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].core-net-pcscf[${1}].vlan-id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].core-net-pcscf[${1}].sip-pa-termination-ip-address} + } + + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].proc-mgmt-signal-param-host-name} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].mated-pair-fully-qualified-domain-name} + ${repeat:service-data.vnf-config-parameters-list.vnf-config-parameters[0].outgoing-proxy_length: + + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].outgoing-proxy[${1}].id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].outgoing-proxy[${1}].domain-name} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].outgoing-proxy[${1}].ip-address} + } + ${repeat:service-data.vnf-config-parameters-list.vnf-config-parameters[0].foreign-net_length: + + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].foreign-net[${1}].network-name} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].foreign-net[${1}].id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].foreign-net[${1}].network-id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].foreign-net[${1}].next-hop-ip-address} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].foreign-net[${1}].subnet-mask-length} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].foreign-net[${1}].vlan-id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].foreign-net[${1}].sip-ic-termination-ip-address} + } + ${repeat:service-data.vnf-config-parameters-list.vnf-config-parameters[0].address-to-network_length: + + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].address-to-network[${1}].foreign-network-id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].address-to-network[${1}].id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].address-to-network[${1}].ip-address} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].address-to-network[${1}].subnet-mask-length} + } + ${repeat:service-data.vnf-config-parameters-list.vnf-config-parameters[0].core-net-ibcf_length: + + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].core-net-ibcf[${1}].network-name} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].core-net-ibcf[${1}].id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].core-net-ibcf[${1}].network-id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].core-net-ibcf[${1}].next-hop-ip-address} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].core-net-ibcf[${1}].subnet-mask-length} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].core-net-ibcf[${1}].vlan-id} + ${service-data.vnf-config-parameters-list.vnf-config-parameters[0].core-net-ibcf[${1}].sip-ic-termination-ip-address} + } + + -- cgit 1.2.3-korg