demx8as6 | f58b3e1 | 2019-09-18 08:53:26 +0200 | [diff] [blame] | 1 | ################################################################################ |
demx8as6 | 6342375 | 2021-03-26 21:58:48 +0100 | [diff] [blame] | 2 | # Copyright 2021 highstreet technologies GmbH and others |
demx8as6 | f58b3e1 | 2019-09-18 08:53:26 +0200 | [diff] [blame] | 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 | # |
demx8as6 | 86b92e8 | 2021-05-08 15:58:54 +0200 | [diff] [blame^] | 8 | # https://www.apache.org/licenses/LICENSE-2.0 |
demx8as6 | f58b3e1 | 2019-09-18 08:53:26 +0200 | [diff] [blame] | 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 |
demx8as6 | 6342375 | 2021-03-26 21:58:48 +0100 | [diff] [blame] | 22 | urlVes=https://localhost:8443/eventListener/v7 |
| 23 | basicAuthVes=sample1:sample1 |
demx8as6 | f58b3e1 | 2019-09-18 08:53:26 +0200 | [diff] [blame] | 24 | |
| 25 | ################################################################################ |
| 26 | # common generated event settings, please dont touch |
demx8as6 | 4c6b4d1 | 2021-03-26 22:07:26 +0100 | [diff] [blame] | 27 | timestamp=$(date -u +%s%6N) |
| 28 | timeInS=${timestamp:0:$((${#timestamp}-6))} |
| 29 | timeMs=${timestamp:(-6)} |
demx8as6 | f58b3e1 | 2019-09-18 08:53:26 +0200 | [diff] [blame] | 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 1234 BestInClass (1234) |
| 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 | [1234]=NSHMRIACQ01M01123401 |
| 58 | [fyng]=LKCYFL79Q01M01FYNG01 |
| 59 | [r2d2]=MMTSIL02Q01M01R2D201 |
| 60 | [7dev]=PRTNILACQ01M017DEV01 |
demx8as6 | f9e11bb | 2021-04-02 13:37:33 +0200 | [diff] [blame] | 61 | [nsky]=O-RAN-FH-IPv6-01 |
demx8as6 | f58b3e1 | 2019-09-18 08:53:26 +0200 | [diff] [blame] | 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 | [1234]="1234 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 | [1234]=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 | [1234]=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 | [1234]=LP-MWPS-RADIO |
| 122 | [fyng]=LP-MWPS-RADIO |
| 123 | [r2d2]=LP-MWPS-RADIO |
| 124 | [7dev]=LP-MWPS-RADIO |
| 125 | [nsky]=LP-MWPS-RADIO |
| 126 | [1OSF]=LP-MWPS-RADIO |
| 127 | [no5g]=LP-MWPS-RADIO |
| 128 | [vb5g]=LP-MWPS-RADIO |
| 129 | [ngce]=LP-MWPS-RADIO |
| 130 | [scru]=LP-MWPS-RADIO |
| 131 | [sdnr]=northbound-interface |
| 132 | ) |
| 133 | |
| 134 | spaces=" "; |
| 135 | sequence=; |
| 136 | |
| 137 | mkdir -p json/examples |