Commit 86026f5d authored by Binh Nguyen's avatar Binh Nguyen

Change path

parent 906c2123
......@@ -2,6 +2,12 @@
source ../simeca_constants.sh
if [ ! -f /var/log/UE_INITED ]; then
echo "The UE_ID does not seem to be initialized. Did you forget to run ./init_ue.sh?"
exit 1
fi
#Replace hostname
if [ ! -f /tmp/HOST_REPLACED ]; then
./replace_hostname.sh
......
#!/bin/bash
source ../simeca_constants.sh
if [ $# -lt 1 ]; then
echo "Usage: <UE_ID, eg, 310>"
exit 1
fi
UE_ID=$1
sudo sed -i "s/UE_ID=.*/UE_ID=\"$UE_ID\"/g" $SIMECA_PATH/simeca_constants.sh || {
echo "Can't modify UE_ID! Should retry!!!"
exit 1
}
sudo touch /var/log/UE_INITED
exit 0
#!/bin/bash
###############MODIFY THIS FIRST!##################
UE_ID="311" #UE12
UE_ID="306"
###################################################
NEXUS_IMSI="001011234560$UE_ID"
NEXUS_MISDN="491234567$UE_ID"
domain=$(hostname | awk -F'.' '{print $2"."$3"."$4"."$5}')
SIMECA_PATH="/usr/local/src/simeca"
#SIMECA_PATH="/usr/local/src/simeca"
SIMECA_PATH="/opt/OpenEPC/bin/simeca"
SCRIPTS="$SIMECA_PATH/script"
SIMECA_SCRIPTS="/usr/local/src/simeca_scripts"
SIMECA_SCRIPTS="/opt/OpenEPC/bin/simeca_scripts"
MC_PATH="$SIMECA_PATH/simeca_controller"
CONF_PATH="$SIMECA_PATH/CONF"
#SIMECA_EPC="/proj/PhantomNet/binh/openepc-att-demo/" #Todo: package this
SIMECA_EPC="/opt/OpenEPC/" #Todo: package this
START_SCRIPTS="$SIMECA_PATH/start_scripts"
START_SCRIPTS="/usr/local/src/simeca/start_scripts"
HSS_PROVISION="$SIMECA_PATH/hss_provision"
EPC="$SIMECA_PATH/epc"
XML="$SIMECA_PATH/xml"
......
......@@ -65,9 +65,10 @@ supported_ofctl = {
class RestIoTApi(app_manager.RyuApp):
_SCRIPTS = "/usr/local/src/simeca"
DATA="/usr/local/src/simeca/data"
_CONF = "/usr/local/src/simeca/CONF"
SIMECA = "/opt/OpenEPC/bin"
_SCRIPTS = "%s/simeca" % SIMECA
DATA="%s/simeca/data" % SIMECA
_CONF = "%s/simeca/CONF" % SIMECA
OFP_VERSIONS = [ofproto_v1_0.OFP_VERSION,
ofproto_v1_2.OFP_VERSION,
ofproto_v1_3.OFP_VERSION]
......
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