diff --git a/ci-scripts/xml_files/container_5g_rfsim_sidelink.xml b/ci-scripts/xml_files/container_5g_rfsim_sidelink.xml new file mode 100644 index 0000000000..3346ace418 --- /dev/null +++ b/ci-scripts/xml_files/container_5g_rfsim_sidelink.xml @@ -0,0 +1,83 @@ + + + rfsim-5gnr-sidelink + Sidelink test + wrench + 1 + + 111111 + 000002 + 000003 + 000004 + 000005 + 100001 + + + + + Pull_Local_Registry + Pull Images from Local Registry + 0 + oai-nr-ue-asan + + + + DeployGenObject + Deploy OAI 5G UE 1 + yaml_files/5g_rfsimulator_sidelink + oai-nr-ue-1 + 1 + + + + DeployGenObject + Deploy OAI 5G UE 2 + yaml_files/5g_rfsimulator_sidelink + oai-nr-ue-2 + 1 + + + + IdleSleep + Sleep + 20 + + + + Custom_Command + Check that UE synched + localhost + docker logs rfsim5g-oai-nr-ue-2 | grep -m 1 "PSBCH RX:OK" + yes + + + + UndeployGenObject + Undeploy all OAI 5G stack + yaml_files/5g_rfsimulator_sidelink + 1,0,0,0 + 1,0,0,0 + + + diff --git a/ci-scripts/xml_files/container_5g_rfsim_sidelink_down.xml b/ci-scripts/xml_files/container_5g_rfsim_sidelink_down.xml new file mode 100644 index 0000000000..46661e3dc4 --- /dev/null +++ b/ci-scripts/xml_files/container_5g_rfsim_sidelink_down.xml @@ -0,0 +1,45 @@ + + + rfsim-5gnr-sidelink-down + CleanUp sidelink test + trash + + 100002 + 222222 + + + + + UndeployGenObject + Undeploy all OAI 5G stack + yaml_files/5g_rfsimulator_sidelink + + + + Clean_Test_Server_Images + Clean Test Images on Test Server + 0 + + + diff --git a/ci-scripts/yaml_files/5g_rfsimulator_sidelink/docker-compose.yaml b/ci-scripts/yaml_files/5g_rfsimulator_sidelink/docker-compose.yaml new file mode 100644 index 0000000000..684962b0a6 --- /dev/null +++ b/ci-scripts/yaml_files/5g_rfsimulator_sidelink/docker-compose.yaml @@ -0,0 +1,66 @@ +services: + oai-nr-ue-1: + image: oaisoftwarealliance/oai-nr-ue:develop + container_name: rfsim5g-oai-nr-ue-1 + cap_drop: + - ALL + cap_add: + - NET_ADMIN + - NET_RAW + environment: + USE_ADDITIONAL_OPTIONS: --sl-mode 2 --sync-ref 4 --rfsim --rfsimulator.serveraddr server --log_config.global_log_options level,nocolor,time + networks: + public_net: + ipv4_address: 192.168.71.140 + devices: + - /dev/net/tun:/dev/net/tun + volumes: + - ../../conf_files/nrue.uicc.conf:/opt/oai-nr-ue/etc/nr-ue.conf + healthcheck: + test: /bin/bash -c "pgrep nr-uesoftmodem" + interval: 10s + timeout: 5s + retries: 5 + + oai-nr-ue-2: + image: oaisoftwarealliance/oai-nr-ue:develop + container_name: rfsim5g-oai-nr-ue-2 + cap_drop: + - ALL + cap_add: + - NET_ADMIN # for interface bringup + - NET_RAW # for ping + environment: + USE_ADDITIONAL_OPTIONS: --sl-mode 2 --rfsim --rfsimulator.serveraddr 192.168.71.140 --log_config.global_log_options level,nocolor,time + depends_on: + - oai-nr-ue-1 + networks: + public_net: + ipv4_address: 192.168.71.150 + devices: + - /dev/net/tun:/dev/net/tun + volumes: + - ../../conf_files/nrue.uicc.conf:/opt/oai-nr-ue/etc/nr-ue.conf + healthcheck: + test: /bin/bash -c "pgrep nr-uesoftmodem" + interval: 10s + timeout: 5s + retries: 5 + +networks: + public_net: + driver: bridge + name: rfsim5g-oai-public-net + ipam: + config: + - subnet: 192.168.71.128/26 + driver_opts: + com.docker.network.bridge.name: "rfsim5g-public" + traffic_net: + driver: bridge + name: rfsim5g-oai-traffic-net + ipam: + config: + - subnet: 192.168.72.128/26 + driver_opts: + com.docker.network.bridge.name: "rfsim5g-traffic"