X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=smo-install%2Ftests_oom%2Fdu-simulator%2Fresources%2Fconfig%2Fconfig.json;fp=smo-install%2Ftests_oom%2Fdu-simulator%2Fresources%2Fconfig%2Fconfig.json;h=172bff5fbea6a2469d7dac9d55c96b8a46053475;hb=dd88f8e183d4463db48e1db2abb5d101e3dfb02a;hp=0000000000000000000000000000000000000000;hpb=aed39eed3108410e207827c54b103581e45ae3ed;p=it%2Fdep.git diff --git a/smo-install/tests_oom/du-simulator/resources/config/config.json b/smo-install/tests_oom/du-simulator/resources/config/config.json new file mode 100644 index 00000000..172bff5f --- /dev/null +++ b/smo-install/tests_oom/du-simulator/resources/config/config.json @@ -0,0 +1,83 @@ +{ + "container-rules": { + "excluded-modules": [], + "excluded-features": [] + }, + + "supervisor-rules": { + "netopeer": { + "path": "/usr/local/bin/netopeer2-server", + "args": ["-d", "-v2"], + "autorestart": true, + "stdout": "log/netopeer-stdout.log", + "stderr": "log/netopeer-stderr.log" + }, + + "sshd": { + "path": "/usr/sbin/sshd", + "args": ["-D"], + "autorestart": true, + "stdout": "log/sshd-stdout.log", + "stderr": "log/sshd-stderr.log" + }, + + "ntsim-network-function": { + "path": "/opt/dev/ntsim-ng/ntsim-ng", + "args": ["-w/opt/dev/ntsim-ng", "-f"], + "nomanual": true + } + }, + + "datastore-random-generation-rules" : { + "excluded-modules": [ + "sysrepo", + "sysrepo-monitoring", + "ietf-yang-library", + "ietf-netconf-acm", + "ietf-netconf-monitoring", + "nc-notifications", + "ietf-keystore", + "ietf-truststore", + "ietf-system", + "ietf-netconf-server", + "nts-network-function", + "o-ran-sc-du-hello-world" + ], + + "default-list-instances": 1, + "custom-list-instances" : [] + }, + + "datastore-populate-rules": { + "random-generation-enabled": false, + + "pre-generated-operational-data": [ + "../deploy/data/o-ran-sc-du-hello-world-operational.xml" + ], + "pre-generated-running-data": [ + "../deploy/data/o-ran-sc-du-hello-world-running.xml" + ] + }, + + "fault-rules" : { + "yang-notif-template" : "$$uint16_counter$$%%object%%%%affected-object%%%%fault-severity%%%%cleared%%%%text%%%%date-time%%", + "choosing-method" : "linear", + "faults" : [ +{{ $faultsSize := (len .du.simulatedFaults) }} +{{ range $i, $fault := .du.simulatedFaults }} + { + "condition" : "{{ $fault.condition }}", + "object" : "{{$fault.object}}", + "severity" : "{{$fault.severity}}", + "date-time" : "$$time$$", + "specific-problem" : "{{$fault.specificProblem}}", + + "fault-severity" : "{{$fault.faultSeverity}}", + "affected-object" : "%%object%%", + "cleared" : "{{$fault.cleared}}", + "text" : "{{$fault.text}}" + }{{ if lt (add1 $i) $faultsSize }},{{ end }} +{{ end }} + ] + } +}