Add test script for o1NotifyPnfRegistration
[oam.git] / code / client-scripts-ves-v7 / config
1 ################################################################################
2 # Copyright 2021 highstreet technologies GmbH and others
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #     https://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16
17 ################################################################################
18 # Configuration for interface tests
19
20 ################################################################################
21 # DCAE VES Collector communication end point
22 urlVes=https://localhost:8443/eventListener/v7
23 basicAuthVes=sample1:sample1
24
25 ################################################################################
26 # common generated event settings, please dont touch
27 timestamp=$(date -u +%s%6N)
28 timeInS=${timestamp:0:$((${#timestamp}-6))}
29 timeMs=${timestamp:(-6)}
30 eventTime=$(date -u -d @$timeInS +'%Y-%m-%dT%H:%M:%S').$timeMs"Z"
31 eventType="O_RAN_COMPONENT"
32
33 ################################################################################
34 # Information from document: SDN-R System Requirements
35 #
36 # a. VendorA   pnf2 BestInClass    (pnf2)
37 # b. VendorA   FancyNextGeneration (FYNG)
38 # c. VendorB   R2D2 NewFuture      (R2D2)
39 # d. VendorB   7200DEV             (7DEV)
40 # e. VendorC   TheSkyIsTheLimit    (nSky)
41 # f. VendorC   OpenSourceFirst     (1OSF)
42
43 # g. VendorA   PNF5G               (NO5G)
44 # h. VendorB   PNF5G               (VB5G)
45 # i. VendorC   NGCell              (NGCE)
46 # j. VendorC   O-RU                (SCRU)
47 #
48 # z. SDN-R     Controller itself   (SDNR)
49
50 declare -A pnfIdByType;
51 declare -A modelByType;
52 declare -A oamIpByType;
53 declare -A vendorsByType;
54 declare -A interfaceByType;
55
56 pnfIdByType=(
57     [pnf2]=NSHMRIACQ01M01pnf201
58     [fyng]=LKCYFL79Q01M01FYNG01
59     [r2d2]=MMTSIL02Q01M01R2D201
60     [7dev]=PRTNILACQ01M017DEV01
61     [nsky]=O-RAN-FH-IPv6-01
62     [1OSF]=SNSNFLR0Q01M011OSF01
63
64     [no5g]=MMTSIL02Q01M01NO5G01
65     [vb5g]=PRTNILACQ01M01VB5G01
66     [ngce]=SEDNKSAHQ01M01NGCE01
67     [scru]=SNSNFLR0Q01M01SCRU01
68
69     [sdnr]=$(hostname --fqdn)
70 );
71
72 modelByType=(
73     [pnf2]="pnf2 BestInClass"
74     [fyng]="FancyNextGeneration"
75     [r2d2]="R2D2 NewFuture"
76     [7dev]="7200DEV"
77     [nsky]="TheSkyIsTheLimit"
78     [1OSF]="OpenSourceFirst"
79
80     [no5g]="PNF5G"
81     [vb5g]="PNF5G"
82     [ngce]="NGCell"
83     [scru]="O-RU"
84
85     [sdnr]="ONAP Controller for Radio"
86 );
87
88 oamIpByType=(
89     [pnf2]=10.10.10.11
90     [fyng]=10.10.10.12
91     [r2d2]=10.10.10.13
92     [7dev]=10.10.10.14
93     [nsky]=10.10.10.15
94     [1OSF]=10.10.10.16
95
96     [no5g]=10.10.10.17
97     [vb5g]=10.10.10.18
98     [ngce]=10.10.10.19
99     [scru]=10.10.10.20
100
101     [sdnr]=127.0.0.1
102 );
103
104 vendorsByType=(
105     [pnf2]=VendorA
106     [fyng]=VendorA
107     [r2d2]=VendorB
108     [7dev]=VendorB
109     [nsky]=VendorC
110     [1OSF]=VendorC
111
112     [no5g]=VendorA
113     [vb5g]=VendorB
114     [ngce]=VendorC
115     [scru]=VendorC
116
117     [sdnr]=ONAP
118 );
119
120 interfaceByType=(
121     [pnf2]=4af8681f-f2e4-4058-8052-4e9343ee7bf2
122     [fyng]=4af8681f-f2e4-4058-8052-4e9343ee7bf2
123     [r2d2]=4af8681f-f2e4-4058-8052-4e9343ee7bf2
124     [7dev]=4af8681f-f2e4-4058-8052-4e9343ee7bf2
125     [nsky]=4af8681f-f2e4-4058-8052-4e9343ee7bf2
126     [1OSF]=4af8681f-f2e4-4058-8052-4e9343ee7bf2
127     [no5g]=4af8681f-f2e4-4058-8052-4e9343ee7bf2
128     [vb5g]=4af8681f-f2e4-4058-8052-4e9343ee7bf2
129     [ngce]=4af8681f-f2e4-4058-8052-4e9343ee7bf2
130     [scru]=4af8681f-f2e4-4058-8052-4e9343ee7bf2
131     [sdnr]=northbound-interface
132 )
133
134 spaces="                   ";
135 sequence=;
136
137 mkdir -p json/examples