290d21b62164641fe9a335efd2ea1dc65972e8a8
[it/dep.git] / smo-install / oran_oom / du-simulator / resources / config / config.json
1 {
2     "container-rules": {
3         "excluded-modules": [],
4         "excluded-features": []
5     },
6
7     "supervisor-rules": {
8         "netopeer": {
9             "path": "/usr/local/bin/netopeer2-server",
10             "args": ["-d", "-v2"],
11             "autorestart": true,
12             "stdout": "log/netopeer-stdout.log",
13             "stderr": "log/netopeer-stderr.log"
14         },
15
16         "ntsim-network-function": {
17             "path": "/opt/dev/ntsim-ng/ntsim-ng",
18             "args": ["-w/opt/dev/ntsim-ng", "-f"],
19             "nomanual": true
20         }
21     },
22
23     "datastore-random-generation-rules" : {
24         "excluded-modules": [
25             "sysrepo",
26             "sysrepo-monitoring",
27             "ietf-yang-library",
28             "ietf-netconf-acm",
29             "ietf-netconf-monitoring",
30             "nc-notifications",
31             "ietf-keystore",
32             "ietf-truststore",
33             "ietf-system",
34             "ietf-netconf-server",
35             "nts-network-function"
36         ],
37
38         "default-list-instances": 2,
39         "custom-list-instances" : []
40     },
41
42     "datastore-populate-rules": {
43         "random-generation-enabled": true,
44
45         "pre-generated-operational-data": [
46             "/opt/dev/deploy/data/o-ran-sc-du-hello-world-operational.xml"
47         ],
48         "pre-generated-running-data": [
49             "/opt/dev/deploy/data/o-ran-sc-du-hello-world-running.xml"
50         ]
51     },
52
53     "fault-rules" : {
54         "yang-notif-template" : "<alarm-notif xmlns=\"urn:o-ran:fm:1.0\"><fault-id>$$uint16_counter$$</fault-id><fault-source>%%object%%</fault-source><affected-objects><name>%%affected-object%%</name></affected-objects><fault-severity>%%fault-severity%%</fault-severity><is-cleared>%%cleared%%</is-cleared><fault-text>%%text%%</fault-text><event-time>%%date-time%%</event-time></alarm-notif>",
55         "choosing-method" : "linear",
56         "faults" : [
57 {{ $faultsSize := (len .du.simulatedFaults) }}
58 {{ range $i, $fault := .du.simulatedFaults }}
59               {
60                 "condition" : "{{ $fault.condition  }}",
61                 "object"    : "/o-ran-sc-du-hello-world:network-function/du-to-ru-connection[name='{{$fault.name}}']",
62                 "severity"  : "{{$fault.severity}}",
63                 "date-time" : "$$time$$",
64                 "specific-problem" : "{{$fault.specificProblem}}",
65
66                 "fault-severity" : "{{$fault.faultSeverity}}",
67                 "affected-object" : "%%object%%",
68                 "cleared" : "{{$fault.cleared}}",
69                 "text" : "{{$fault.text}}"
70             }{{ if lt (add1 $i) $faultsSize }},{{ end }}
71 {{ end }}
72         ]
73     }
74 }