Update Network simulators
[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         "sshd": {
17             "path": "/usr/sbin/sshd",
18             "args": ["-D"],
19             "autorestart": true,
20             "stdout": "log/sshd-stdout.log",
21             "stderr": "log/sshd-stderr.log"
22         },
23
24         "ntsim-network-function": {
25             "path": "/opt/dev/ntsim-ng/ntsim-ng",
26             "args": ["-w/opt/dev/ntsim-ng", "-f"],
27             "nomanual": true
28         }
29     },
30
31     "datastore-random-generation-rules" : {
32         "excluded-modules": [
33             "sysrepo",
34             "sysrepo-monitoring",
35             "ietf-yang-library",
36             "ietf-netconf-acm",
37             "ietf-netconf-monitoring",
38             "nc-notifications",
39             "ietf-keystore",
40             "ietf-truststore",
41             "ietf-system",
42             "ietf-netconf-server",
43             "nts-network-function",
44             "o-ran-sc-du-hello-world"
45         ],
46
47         "default-list-instances": 1,
48         "custom-list-instances" : []
49     },
50
51     "datastore-populate-rules": {
52         "random-generation-enabled": false,
53
54         "pre-generated-operational-data": [
55             "../deploy/data/o-ran-sc-du-hello-world-operational.xml"
56         ],
57         "pre-generated-running-data": [
58             "../deploy/data/o-ran-sc-du-hello-world-running.xml"
59         ]
60     },
61
62     "fault-rules" : {
63         "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>",
64         "choosing-method" : "linear",
65         "faults" : [
66 {{ $faultsSize := (len .du.simulatedFaults) }}
67 {{ range $i, $fault := .du.simulatedFaults }}
68               {
69                 "condition" : "{{ $fault.condition  }}",
70                 "object"    : "{{$fault.object}}",
71                 "severity"  : "{{$fault.severity}}",
72                 "date-time" : "$$time$$",
73                 "specific-problem" : "{{$fault.specificProblem}}",
74
75                 "fault-severity" : "{{$fault.faultSeverity}}",
76                 "affected-object" : "%%object%%",
77                 "cleared" : "{{$fault.cleared}}",
78                 "text" : "{{$fault.text}}"
79             }{{ if lt (add1 $i) $faultsSize }},{{ end }}
80 {{ end }}
81         ]
82     }
83 }