Commit 917109d3 authored by Rahman's avatar Rahman

move oai setup shell commands

parent 742e3227
......@@ -43,12 +43,12 @@ service isc-dhcp-server start
apt-get -y install --reinstall avahi-daemon
# switch to iris supported OAI branch
pushd .
cd /opt/oai/openairinterface5g
git checkout iris_hw_new
source oaienv
cd cmake_targets
./build_oai -w IRIS -x --eNB
popd
#pushd .
#cd /opt/oai/openairinterface5g
#git checkout iris_hw_new
#source oaienv
#cd cmake_targets
#./build_oai -w IRIS -x --eNB
#popd
exit $?
......@@ -127,6 +127,9 @@ enb1.hardware_type = GLOBALS.PC_HWTYPE
enb1.disk_image = GLOBALS.PC_IMG
connectOAI_DS(enb1)
enb1.addService(rspec.Execute(shell="sh", command="/usr/bin/sudo /local/repository/irishost_start.sh"))
enb1.addService(rspec.Execute(shell="sh", command="cd /opt/oai/openairinterface5g; git checkout iris_hw_new"))
enb1.addService(rspec.Execute(shell="sh", command="source oaienv; cd cmake_targets;"))
enb1.addService(rspec.Execute(shell="sh", command="./build_oai -w IRIS -x --eNB"))
ifpc1ir1 = enb1.addInterface("pc1ir1", rspec.IPv4Address("192.168.1.1", "255.255.255.0"))
enb1.addService(rspec.Execute(shell="sh", command=GLOBALS.OAI_CONF_SCRIPT + " -r ENB"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment