From aa35a8ecece6592d35971150ee909f7044396bbe Mon Sep 17 00:00:00 2001 From: Alex Stancu Date: Fri, 7 Apr 2023 14:21:09 +0300 Subject: [PATCH] Add scripts for building locally O-DU with 3GPP Rel-18 YANG models. Issue-ID: SIM-108 Change-Id: I9b23a063ae088421758d347413c6e044365c0742 Signed-off-by: Alex Stancu --- docs/overview.rst | 3 +- .../_3gpp-common-managed-element-operational.xml | 109 ++++++++++++++++++++- .../data/_3gpp-common-managed-element-running.xml | 99 ++++++++++++++++++- ntsimulator/nts_build_o_du_rel_18.sh | 1 + 4 files changed, 203 insertions(+), 9 deletions(-) diff --git a/docs/overview.rst b/docs/overview.rst index 8f275b1..e78669d 100644 --- a/docs/overview.rst +++ b/docs/overview.rst @@ -643,5 +643,4 @@ Because of the license of the 3GPP YANG models, we cannot use the same approach Building such an image is pretty straightforward: -1. `cd` into the `ntsimulator/deploy/o-ran-du-rel-18` folder and then run the `get_3gpp_yangs.sh` bash script. This will download the necessary 3GPP YANG models locally. -2. run the `nts_build_o_du_rel_18.sh` bash script from `ntsimulator` folder. It will produce a docker image with the name `nts-ng-o-ran-du-rel-18` and the version tag defined in the `.env` file, under the `NTS_BUILD_VERSION` environment variable. +1. run the `nts_build_o_du_rel_18.sh` bash script from `ntsimulator` folder. It will download the necessary 3GPP YANG models and then produce a docker image with the name `nts-ng-o-ran-du-rel-18` and the version tag defined in the `.env` file, under the `NTS_BUILD_VERSION` environment variable. diff --git a/ntsimulator/deploy/o-ran-du-rel-18/data/_3gpp-common-managed-element-operational.xml b/ntsimulator/deploy/o-ran-du-rel-18/data/_3gpp-common-managed-element-operational.xml index b7ff319..6e9682a 100644 --- a/ntsimulator/deploy/o-ran-du-rel-18/data/_3gpp-common-managed-element-operational.xml +++ b/ntsimulator/deploy/o-ran-du-rel-18/data/_3gpp-common-managed-element-operational.xml @@ -1,3 +1,106 @@ - - network-function-1 - + + ManagedElement=1 + + 20 + NTS-1.6.1 + + + ManagedElement=1,GNBDUFunction=1 + + 20 + 10 + 32 + 1 + O-DU-1123 + + + ManagedElement=1,GNBDUFunction=1,NRCellDU=1 + + 20 + 1 + + 001 + 001 + FFFFFF + 1 + + + 0 + + 001 + 001 + + cAGId-1 + nID-1 + + 0 + 1 + 2023-06-18T19:00:00.0Z + 2023-12-18T19:00:00.0Z + 900 + 0 + 1 + 900 + 0 + 2100000 + 5 + 30 + 0 + 5 + UID=nobody@example.com,DC=example,DC=com + UID=nobody@example.com,DC=example,DC=com + ManagedElement=1,GNBDUFunction=1,NRSectorCarrier=1 + + + ManagedElement=1,GNBDUFunction=1,NRCellDU=1,ManagedNFService=1 + + + 172.27.10.1 + 830 + + + netconf-edit-config + O-RU + + UNLOCKED + o-ru_serviceX + ENABLED + IDLE + REGISTERED + + + + + ManagedElement=1,GNBDUFunction=1,NRSectorCarrier=1 + + 20 + DL_AND_UL + 10 + -30 + 2100000 + 2100000 + 100 + 100 + ManagedElement=1,GNBDUFunction=1,SectorEquipmentFunction=1 + + + ManagedElement=1,GNBDUFunction=1,NRSectorCarrier=1,ManagedNFService=1 + + + 172.27.10.1 + 830 + + + netconf-edit-config + O-RU + + UNLOCKED + o-ru_serviceX + ENABLED + IDLE + REGISTERED + + + + + diff --git a/ntsimulator/deploy/o-ran-du-rel-18/data/_3gpp-common-managed-element-running.xml b/ntsimulator/deploy/o-ran-du-rel-18/data/_3gpp-common-managed-element-running.xml index 2c28375..4aa2d5a 100644 --- a/ntsimulator/deploy/o-ran-du-rel-18/data/_3gpp-common-managed-element-running.xml +++ b/ntsimulator/deploy/o-ran-du-rel-18/data/_3gpp-common-managed-element-running.xml @@ -1,6 +1,97 @@ - - network-function-1 + + ManagedElement=1 - 20 + 20 - + + ManagedElement=1,GNBDUFunction=1 + + 20 + 10 + 32 + 1 + O-DU-1123 + + + ManagedElement=1,GNBDUFunction=1,NRCellDU=1 + + 20 + 1 + + 001 + 001 + FFFFFF + 1 + + + 0 + + 001 + 001 + + cAGId-1 + nID-1 + + 0 + 1 + 2023-06-18T19:00:00.0Z + 2023-12-18T19:00:00.0Z + 900 + 0 + 1 + 900 + 0 + 2100000 + 5 + 30 + 0 + 5 + UID=nobody@example.com,DC=example,DC=com + UID=nobody@example.com,DC=example,DC=com + ManagedElement=1,GNBDUFunction=1,NRSectorCarrier=1 + + + ManagedElement=1,GNBDUFunction=1,NRCellDU=1,ManagedNFService=1 + + + 172.27.10.1 + 830 + + + netconf-edit-config + O-RU + + UNLOCKED + + + + + ManagedElement=1,GNBDUFunction=1,NRSectorCarrier=1 + + 20 + DL_AND_UL + 10 + -30 + 2100000 + 2100000 + 100 + 100 + ManagedElement=1,GNBDUFunction=1,SectorEquipmentFunction=1 + + + ManagedElement=1,GNBDUFunction=1,NRSectorCarrier=1,ManagedNFService=1 + + + 172.27.10.1 + 830 + + + netconf-edit-config + O-RU + + UNLOCKED + + + + + diff --git a/ntsimulator/nts_build_o_du_rel_18.sh b/ntsimulator/nts_build_o_du_rel_18.sh index 1d89057..2a348cc 100755 --- a/ntsimulator/nts_build_o_du_rel_18.sh +++ b/ntsimulator/nts_build_o_du_rel_18.sh @@ -17,4 +17,5 @@ ################################################################################ source .env +./deploy/o-ran-du-rel-18/get_3gpp_yangs.sh docker-compose -f nts-ng-docker-image-build-ubuntu.yaml build --build-arg NTS_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg NTS_BUILD_VERSION=$NTS_BUILD_VERSION nts-ng-base nts-ng-o-ran-du-rel-18 -- 2.16.6