Refactor start order of srRAN and gnb services

This commit is contained in:
Erik Foris 2024-04-26 14:41:29 +02:00
parent baae0fbda9
commit 88991925d1
2 changed files with 8 additions and 6 deletions

11
run
View File

@ -1,11 +1,13 @@
#!/bin/bash #!/bin/bash
ip netns add ue1
#start oran ric #start oran ric
cd /opt/oran-sc-ric cd /opt/oran-sc-ric
docker compose up -d docker compose up -d
#start srsRAN 4g #start srsRAN 4g
sleep 5 sleep 15
screen -dmS srsue srsue /opt/oran-sc-ric/e2-agents/srsRAN/ue_zmq.conf screen -dmS srsue srsue /opt/oran-sc-ric/e2-agents/srsRAN/ue_zmq.conf
# start gnb # start gnb
@ -13,15 +15,14 @@ cd /opt/srsRAN_Project/docker
docker compose up -d 5gc docker compose up -d 5gc
cd ../build/apps/gnb cd ../build/apps/gnb
sleep 15 sleep 15
sudo screen -dmS gnb ./gnb -c /opt/oran-sc-ric/e2-agents/srsRAN/gnb_zmq.yaml screen -dmS gnb ./gnb -c /opt/oran-sc-ric/e2-agents/srsRAN/gnb_zmq.yaml
sudo ip netns add ue1
#start ping #start ping
sleep 5 sleep 15
screen -dmS ping ip netns exec ue1 ping -i 0,1 10.45.1.1 screen -dmS ping ip netns exec ue1 ping -i 0,1 10.45.1.1
#start xapp #start xapp
sleep 5 sleep 15
cd /opt/oran-sc-ric cd /opt/oran-sc-ric
screen -S xapp docker compose exec python_xapp_runner ./simple_mon_xapp.py --metrics=DRB.UEThpDl,DRB.UEThpUl screen -S xapp docker compose exec python_xapp_runner ./simple_mon_xapp.py --metrics=DRB.UEThpDl,DRB.UEThpUl

1
stop
View File

@ -6,3 +6,4 @@ docker compose down
pkill srsue pkill srsue
pkill gnb pkill gnb
pkill ping pkill ping
ip netns delete ue1