95638dc4b1c4e15ae0206c1ae162c7e8a23dfe4c
[it/dep.git] / smo-install / oran_oom / ru-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             "ietf-alarms",
36             "ietf-network-instance",
37             "ietf-restconf",
38             "ietf-yang-schema-mount",
39             "ietf-subscribed-notifications",
40             "o-ran-uplane-conf",
41             "o-ran-performance-management",
42             "o-ran-transceiver",
43             "o-ran-mplane-int",
44             "o-ran-processing-element",
45             "o-ran-shared-cell",
46             "nts-network-function"
47         ],
48
49         "default-list-instances": 2,
50         "custom-list-instances" : [
51             {"/ietf-interfaces:interfaces/interface": 4}
52
53         ],
54
55         "restrict-schema": [
56             {"/ietf-interfaces:interfaces/interface/type": ["iana-if-type:ethernetCsmacd"]}
57         ]
58
59     },
60
61     "datastore-populate-rules": {
62         "random-generation-enabled": false,
63
64         "pre-generated-operational-data": [
65             "../deploy/data/ietf-hardware-operational.json",
66             "../deploy/data/ietf-interfaces-operational.xml"
67         ],
68         "pre-generated-running-data": [
69             "../deploy/data/ietf-hardware-running.json",
70             "../deploy/data/ietf-interfaces-running.xml",
71             "/opt/dev/deploy/data/nts-network-function-running.xml"
72         ]
73     },
74
75     "fault-rules" : {
76         "yang-notif-template" : "<alarm-notif xmlns=\"urn:o-ran:fm:1.0\"><fault-id>%%fault-id%%</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>",
77         "choosing-method" : "linear",
78         "faults" : [
79 {{ $faultsSize := (len .ru.simulatedFaults) }}
80 {{ range $i, $fault := .ru.simulatedFaults }}
81             {
82                 "condition" : "{{ $fault.condition }}",
83                 "object"    : "{{ $fault.object }}",
84                 "severity"  : "{{ $fault.severity }}",
85                 "date-time" : "$$time$$",
86                 "specific-problem" : "{{ $fault.specificProblem }}",
87
88                 "fault-id": "{{ $fault.faultId }}",
89                 "fault-severity" : "{{ $fault.faultSeverity }}",
90                 "affected-object" : "$$hostname$$",
91                 "cleared" : "{{ $fault.cleared }}",
92                 "text" : "{{ $fault.text }}"
93             }{{ if lt (add1 $i) $faultsSize }},{{ end }}
94 {{ end }}
95         ]
96     }
97 }