summaryrefslogtreecommitdiffstats
path: root/components/model-catalog/resource-dictionary/starter-dictionary/vnf_name.json
blob: 3deacf5c9135a3a02675568dbe45fee1ac650ba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
    "tags": "vnf_name",
    "name": "vnf_name",
    "group":"default",
    "property": {
        "description": "vnf_name",
        "type": "string"
    },
    "updated-by": "MALAKOV, YURIY <yuriy.malakov@att.com>",
    "sources": {
        "input": {
            "type": "source-input"
        },
        "default": {
            "type": "source-default",
            "properties": {}
        },
        "sdnc": {
            "type": "source-rest",
            "properties": {
                "verb": "GET",
                "type": "JSON",
                "url-path": "/restconf/config/GENERIC-RESOURCE-API:services/service/$service-instance-id/service-data/vnfs/vnf/$vnf-id/vnf-data/vnf-topology/vnf-parameters-data/param/vnf_name",
                "path": "/param/0/value",
                "headers": {
                    "Accept": "application/json",
                    "Content-Type": "application/json"
                },
                "input-key-mapping": {
                    "service-instance-id": "service-instance-id",
                    "vnf-id": "vnf-id"
                },
                "output-key-mapping": {
                    "vnf_name": "value"
                },
                "key-dependencies": [
                    "service-instance-id",
                    "vnf-id"
                ]
            }
        },
        "rest": {
            "type": "source-rest",
            "properties": {
                "endpoint-selector": "naming-resolution",
                "verb": "POST",
                "type": "JSON",
                "headers": {
                    "Accept": "application/json",
                    "Content-Type": "application/json"
                },
                "url-path": "/v1/genNetworkElementName",
                "payload": "{\r\n  \"elements\": [\r\n    {\r\n      \"resource-name\": \"vnf_name\",\r\n      \"resource-value\": \"${vnf_name}\",\r\n      \"external-key\": \"${vnf-id}\",\r\n      \"policy-instance-name\": \"${vf-naming-policy}\",\r\n      \"naming-type\": \"VNF\",\r\n      \"AIC_CLOUD_REGION\": \"${aic-cloud-region}\"\r\n    }\r\n  ]\r\n}",
                "path": "/elements/0/resource-value",
                "input-key-mapping": {
                    "vnf-id": "vnf-id",
                    "aic-cloud-region": "aic-cloud-region",
                    "vf-naming-policy": "vf-naming-policy"
                },
                "output-key-mapping": {
                    "vnf_name": "resource-value"
                },
                "key-dependencies": [
                    "vnf-id",
                    "aic-cloud-region",
                    "vf-naming-policy"
                ]
            }
        }
    }
}
pan class="p p-Indicator">}} command: - bash args: - '-c' - 'export POL_BASIC_AUTH=`echo -n $POL_BASIC_AUTH_USER:$POL_BASIC_AUTH_PASSWORD | base64`; /startService.sh' image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }} imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} env: - name: SPRING_PROFILE value: "{{ .Values.config.springProfile }}" - name: NENG_DB_USER {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "neng-db-secret" "key" "login") | indent 10}} - name: NENG_DB_PASS {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "neng-db-secret" "key" "password") | indent 10}} - name: NENG_DB_URL value: jdbc:mysql://{{ include "common.mariadbService" . }}:{{ include "common.mariadbPort" . }}/{{ index .Values "mariadb-galera" "db" "name" }} - name: POL_CLIENT_AUTH value: "{{ .Values.config.polClientAuth }}" - name: POL_BASIC_AUTH_USER {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pol-basic-auth-secret" "key" "login") | indent 10}} - name: POL_BASIC_AUTH_PASSWORD {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pol-basic-auth-secret" "key" "password") | indent 10}} - name: POL_URL {{- if (include "common.needTLS" .) }} value: "{{ .Values.config.polUrl.https }}" {{- else }} value: "{{ .Values.config.polUrl.http }}" {{- end }} - name: POL_ENV value: "{{ .Values.config.polEnv }}" - name: POL_REQ_ID value: "{{ .Values.config.polReqId }}" - name: AAI_CERT_PASS value: "{{ .Values.config.aaiCertPass }}" - name: AAI_CERT_PATH value: "{{ .Values.config.aaiCertPath }}" - name: AAI_URI {{- if (include "common.needTLS" .) }} value: "{{ .Values.config.aaiUri.https }}" {{- else }} value: "{{ .Values.config.aaiUri.http }}" {{- end }} - name: AAI_AUTH value: "{{ .Values.config.aaiAuth }}" - name: DISABLE_HOST_VERIFICATION value: "{{ .Values.config.disableHostVerification }}" volumeMounts: - name: certs mountPath: /opt/etc/config/aai_keystore subPath: aai_keystore readOnly: true resources: {{ include "common.resources" . | indent 12 }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 10 }} {{- end -}} {{- if .Values.affinity }} affinity: {{ toYaml .Values.affinity | indent 10 }} {{- end }} volumes: - name: certs secret: secretName: {{ include "common.release" . }}-aai-keystore imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key"