Add jenkins charts
[it/dep.git] / smo-install / tests_oom / du-simulator / resources / config / config.json
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 (file)
index 0000000..172bff5
--- /dev/null
@@ -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" : "<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>",
+        "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 }}
+        ]
+    }
+}