Add a disabledREsourcesProfile to the configuration schema and configurations. 20/14220/1
authorMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Fri, 7 Mar 2025 15:27:01 +0000 (16:27 +0100)
committerMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Fri, 7 Mar 2025 15:27:07 +0000 (16:27 +0100)
- types for OperationalState and Percentage added.
- Profile added to network object  generation config

IssueID: OAM-442
Change-Id: I417539f1d30a54fda5eb52dde4f434f8f43c6625
Signed-off-by: Martin Skorupski <martin.skorupski@highstreet-technologies.com>
code/network-generator/config.json
code/network-generator/network_generation/model/jsonSchema/configuration.schema.json
code/network-generator/test_config.json

index fbbf578..e3c86fe 100644 (file)
@@ -1,6 +1,17 @@
 {
   "network": {
     "name": "O-RAN-Network",
+    "operationalState": "enabled",
+    "disabledResourcesProfile": {
+      "o-ran-sc-network:smo": 0,
+      "o-ran-sc-network:o-cloud": 0,
+      "o-ran-sc-network:tower": 0,
+      "o-ran-sc-network:near-rt-ric": 0,
+      "o-ran-common-identity-refs:o-cu-function": 0,
+      "o-ran-common-identity-refs:o-du-function": 0,
+      "o-ran-common-identity-refs:o-ru-function": 20,
+      "o-ran-sc-network:cell": 0
+    },
     "center": {
       "latitude": 40.535,
       "longitude": -74.447,
       },
       "smo": {
         "fiveGCoreCount": 1,
-        "nearRtRicSpiralRadius": 1,
+        "nearRtRicSpiralRadius": 0,
         "oCloudResourcePoolCount": 1
       },
       "nearRtRic": {
-        "oRanCuSpiralRadius": 1
+        "oRanCuSpiralRadius": 0
       },
       "oRanCu": {
-        "oRanDuSpiralRadius": 1
+        "oRanDuSpiralRadius": 0
       },
       "oRanDu": {
         "fronthaulGatewayCount": 0,
index 16f6228..c1512d5 100644 (file)
           "type": "string",
           "pattern": "^[a-zA-Z]{1}[\\S]{0,254}$"
         },
+
+        "disabledResourcesProfile": {
+          "description": "A definition how many resource in percentage should be disabled for each network resource type (e.g. O-DU, Cell, ...). The value is network topology node type (resource type) individual per type.",
+          "$ref": "#/$defs/DisabledResourcesProfile"
+        },
+        "operationalState": {
+          "description": "Defines enumerated operational states aligned with ITU-T usage. Please see ITU-T M.3100: 'Generic Managed Entities' and ITU-T M.3160: 'Generic Management Information Model'",
+          "$ref": "#/$defs/OperationalState"
+        },
         "center": {
           "description": "Defines the geographical center of the Radio Access Network.",
           "$ref": "#/$defs/geoLocation"
         }
       }
     },
+    "Percentage": {
+      "title": "Percentage",
+      "type": "number",
+      "format": "integer",
+      "minimum": 0,
+      "maximum": 100,
+      "default": 0
+    },
     "generationTasks": {
       "title": "generationTasks",
       "type": "object",
           "$ref": "#/$defs/export"
         }
       }
+    },
+    "DisabledResourcesProfile": {
+      "title": "DisabledResourcesProfile",
+      "type": "object",
+      "required": [],
+      "additionalProperties": false,
+      "properties": {
+        "o-ran-sc-network:smo": {
+          "description": "Defines a minimum of how many SMOs in the topology should be disabled.",
+          "$ref": "#/$defs/Percentage"
+        },
+        "o-ran-sc-network:o-cloud": {
+          "description": "Defines a minimum of how many o-cloud resource pools in the topology should be disabled.",
+          "$ref": "#/$defs/Percentage"
+        },
+        "o-ran-sc-network:tower": {
+          "description": "Defines a minimum of how many towers in the topology should be disabled.",
+          "$ref": "#/$defs/Percentage"
+        },
+        "o-ran-sc-network:near-rt-ric": {
+          "description": "Defines a minimum of how many Near-Rt-RICs in the topology should be disabled.",
+          "$ref": "#/$defs/Percentage"
+        },
+        "o-ran-common-identity-refs:o-cu-function": {
+          "description": "Defines a minimum of how many O-CUs (combining O-CU-UP and O-CU-CP) in the topology should be disabled.",
+          "$ref": "#/$defs/Percentage"
+        },
+        "o-ran-common-identity-refs:o-du-function": {
+          "description": "Defines a minimum of how many O-DUs in the topology should be disabled.",
+          "$ref": "#/$defs/Percentage"
+        },
+        "o-ran-common-identity-refs:o-ru-function": {
+          "description": "Defines a minimum of how many O-RUs in the topology should be disabled.",
+          "$ref": "#/$defs/Percentage"
+        },
+        "o-ran-sc-network:cell": {
+          "description": "Defines a minimum of how many Cells in the topology should be disabled.",
+          "$ref": "#/$defs/Percentage"
+        }
+      }
+    },
+    "OperationalState": {
+      "type": "string",
+      "description": "Enumerated operational states aligned with ITU-T usage (e.g., M.3100 and M.3160). References: ITU-T M.3100: 'Generic Managed Entities', ITU-T M.3160: 'Generic Management Information Model'",
+      "enum": ["disabled", "enabled"]
     }
   }
 }
\ No newline at end of file
index dbff3f6..374663c 100644 (file)
@@ -1,6 +1,16 @@
 {
   "network": {
     "name": "O-RAN-TEST-Network",
+    "disabledResourcesProfile": {
+      "o-ran-sc-network:smo": 0,
+      "o-ran-sc-network:o-cloud": 0,
+      "o-ran-sc-network:tower": 0,
+      "o-ran-sc-network:near-rt-ric": 0,
+      "o-ran-common-identity-refs:o-cu-function": 0,
+      "o-ran-common-identity-refs:o-du-function": 0,
+      "o-ran-common-identity-refs:o-ru-function": 0,
+      "o-ran-sc-network:cell": 0
+    },
     "center": {
       "latitude": 40.535,
       "longitude": -74.447,