From: Martin Skorupski Date: Fri, 7 Mar 2025 15:27:01 +0000 (+0100) Subject: Add a disabledREsourcesProfile to the configuration schema and configurations. X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=b8a38df9ea372cc8c1c35211907bf396ddcb18df;p=oam.git Add a disabledREsourcesProfile to the configuration schema and configurations. - types for OperationalState and Percentage added. - Profile added to network object generation config IssueID: OAM-442 Change-Id: I417539f1d30a54fda5eb52dde4f434f8f43c6625 Signed-off-by: Martin Skorupski --- diff --git a/code/network-generator/config.json b/code/network-generator/config.json index fbbf578..e3c86fe 100644 --- a/code/network-generator/config.json +++ b/code/network-generator/config.json @@ -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, @@ -12,14 +23,14 @@ }, "smo": { "fiveGCoreCount": 1, - "nearRtRicSpiralRadius": 1, + "nearRtRicSpiralRadius": 0, "oCloudResourcePoolCount": 1 }, "nearRtRic": { - "oRanCuSpiralRadius": 1 + "oRanCuSpiralRadius": 0 }, "oRanCu": { - "oRanDuSpiralRadius": 1 + "oRanDuSpiralRadius": 0 }, "oRanDu": { "fronthaulGatewayCount": 0, diff --git a/code/network-generator/network_generation/model/jsonSchema/configuration.schema.json b/code/network-generator/network_generation/model/jsonSchema/configuration.schema.json index 16f6228..c1512d5 100644 --- a/code/network-generator/network_generation/model/jsonSchema/configuration.schema.json +++ b/code/network-generator/network_generation/model/jsonSchema/configuration.schema.json @@ -40,6 +40,15 @@ "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" @@ -292,6 +301,14 @@ } } }, + "Percentage": { + "title": "Percentage", + "type": "number", + "format": "integer", + "minimum": 0, + "maximum": 100, + "default": 0 + }, "generationTasks": { "title": "generationTasks", "type": "object", @@ -323,6 +340,51 @@ "$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 diff --git a/code/network-generator/test_config.json b/code/network-generator/test_config.json index dbff3f6..374663c 100644 --- a/code/network-generator/test_config.json +++ b/code/network-generator/test_config.json @@ -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,