From 88991925d135547c2d0bdccd5c2cd9be0781c29d Mon Sep 17 00:00:00 2001 From: Erik Foris Date: Fri, 26 Apr 2024 14:41:29 +0200 Subject: [PATCH] Refactor start order of srRAN and gnb services --- run | 11 ++++++----- stop | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/run b/run index 6aad696..ef293e7 100755 --- a/run +++ b/run @@ -1,11 +1,13 @@ #!/bin/bash +ip netns add ue1 + #start oran ric cd /opt/oran-sc-ric docker compose up -d #start srsRAN 4g -sleep 5 +sleep 15 screen -dmS srsue srsue /opt/oran-sc-ric/e2-agents/srsRAN/ue_zmq.conf # start gnb @@ -13,15 +15,14 @@ cd /opt/srsRAN_Project/docker docker compose up -d 5gc cd ../build/apps/gnb sleep 15 -sudo screen -dmS gnb ./gnb -c /opt/oran-sc-ric/e2-agents/srsRAN/gnb_zmq.yaml -sudo ip netns add ue1 +screen -dmS gnb ./gnb -c /opt/oran-sc-ric/e2-agents/srsRAN/gnb_zmq.yaml #start ping -sleep 5 +sleep 15 screen -dmS ping ip netns exec ue1 ping -i 0,1 10.45.1.1 #start xapp -sleep 5 +sleep 15 cd /opt/oran-sc-ric screen -S xapp docker compose exec python_xapp_runner ./simple_mon_xapp.py --metrics=DRB.UEThpDl,DRB.UEThpUl diff --git a/stop b/stop index 9ddd11c..6b68c8d 100755 --- a/stop +++ b/stop @@ -5,4 +5,5 @@ cd /opt/oran-sc-ric docker compose down pkill srsue pkill gnb -pkill ping \ No newline at end of file +pkill ping +ip netns delete ue1