Commit 66c402ee authored by Lionel Gauthier's avatar Lionel Gauthier

Bug fixes

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5019 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent b8454458
...@@ -33,10 +33,11 @@ source $THIS_SCRIPT_PATH/utils.bash ...@@ -33,10 +33,11 @@ source $THIS_SCRIPT_PATH/utils.bash
########################################################### ###########################################################
test_command_install_package "gccxml" "gccxml" "--force-yes" test_command_install_package "gccxml" "gccxml" "--force-yes"
test_command_install_package "vconfig" "vlan" test_command_install_package "vconfig" "vlan" "--force-yes"
test_command_install_package "iptables" "iptables" test_command_install_package "iptables" "iptables"
test_command_install_package "iperf" "iperf" test_command_install_package "iperf" "iperf" "--force-yes"
test_command_install_package "ip" "iproute" test_command_install_package "ip" "iproute"
test_command_install_lib "/usr/lib/libconfig.so" "libconfig-dev"
test_command_install_script "ovs-vsctl" "$OPENAIRCN_DIR/SCRIPTS/install_openvswitch1.9.0.bash" test_command_install_script "ovs-vsctl" "$OPENAIRCN_DIR/SCRIPTS/install_openvswitch1.9.0.bash"
test_command_install_package "tunctl" "uml-utilities" test_command_install_package "tunctl" "uml-utilities"
if [ ! -d /usr/local/etc/freeDiameter ] if [ ! -d /usr/local/etc/freeDiameter ]
......
...@@ -31,11 +31,13 @@ source $THIS_SCRIPT_PATH/utils.bash ...@@ -31,11 +31,13 @@ source $THIS_SCRIPT_PATH/utils.bash
########################################################### ###########################################################
test_command_install_package "gccxml" "gccxml" "--force-yes" test_command_install_package "gccxml" "gccxml" "--force-yes"
test_command_install_package "vconfig" "vlan" test_command_install_package "vconfig" "vlan" "--force-yes"
test_command_install_package "iptables" "iptables" test_command_install_package "iptables" "iptables"
test_command_install_package "iperf" "iperf" test_command_install_package "iperf" "iperf" "--force-yes"
test_command_install_package "ip" "iproute" test_command_install_package "ip" "iproute"
test_command_install_package "tunctl" "uml-utilities" test_command_install_package "tunctl" "uml-utilities"
test_command_install_lib "/usr/lib/libconfig.so" "libconfig-dev" "--force-yes"
if [ ! -d /usr/local/etc/freeDiameter ] if [ ! -d /usr/local/etc/freeDiameter ]
then then
cd $OPENAIRCN_DIR/S6A/freediameter && ./install_freediameter.sh cd $OPENAIRCN_DIR/S6A/freediameter && ./install_freediameter.sh
...@@ -113,8 +115,8 @@ cd $OPENAIRCN_DIR ...@@ -113,8 +115,8 @@ cd $OPENAIRCN_DIR
####################################################### #######################################################
# FIND CONFIG FILE # FIND CONFIG FILE
####################################################### #######################################################
CONFIG_FILE=$THIS_SCRIPT_PATH/CONF/epc.sfr.default_vlan.conf CONFIG_FILE=$THIS_SCRIPT_PATH/CONF/epc.sfr.default.vlan.conf
SEARCHED_CONFIG_FILE=$THIS_SCRIPT_PATH/CONF/epc.sfr."$HOSTNAME"_vlan.conf SEARCHED_CONFIG_FILE=$THIS_SCRIPT_PATH/CONF/epc.sfr."$HOSTNAME".vlan.conf
if [ -f $SEARCHED_CONFIG_FILE ]; then if [ -f $SEARCHED_CONFIG_FILE ]; then
CONFIG_FILE=$SEARCHED_CONFIG_FILE CONFIG_FILE=$SEARCHED_CONFIG_FILE
echo_warning "config file found is now $CONFIG_FILE" echo_warning "config file found is now $CONFIG_FILE"
...@@ -160,8 +162,8 @@ declare SGW_IPV4_NETMASK_FOR_S1U_S12_S4_UP=$(echo $SGW_IPV4_ADDRESS_FOR_S1U_S12_ ...@@ -160,8 +162,8 @@ declare SGW_IPV4_NETMASK_FOR_S1U_S12_S4_UP=$(echo $SGW_IPV4_ADDRESS_FOR_S1U_S12_
#declare PGW_IPV4_NETMASK_FOR_S5_S8=$( echo $PGW_IPV4_ADDRESS_FOR_S5_S8 | cut -f2 -d '/') #declare PGW_IPV4_NETMASK_FOR_S5_S8=$( echo $PGW_IPV4_ADDRESS_FOR_S5_S8 | cut -f2 -d '/')
declare PGW_IPV4_NETMASK_FOR_SGI=$( echo $PGW_IPV4_ADDR_FOR_SGI | cut -f2 -d '/') declare PGW_IPV4_NETMASK_FOR_SGI=$( echo $PGW_IPV4_ADDR_FOR_SGI | cut -f2 -d '/')
ENB_IPV4_ADDRESS_FOR_S1_MME=$( echo $ENB_IPV4_ADDRESS_FOR_S1_MME | cut -f1 -d '/') #ENB_IPV4_ADDRESS_FOR_S1_MME=$( echo $ENB_IPV4_ADDRESS_FOR_S1_MME | cut -f1 -d '/')
ENB_IPV4_ADDRESS_FOR_S1U=$( echo $ENB_IPV4_ADDRESS_FOR_S1U | cut -f1 -d '/') #ENB_IPV4_ADDRESS_FOR_S1U=$( echo $ENB_IPV4_ADDRESS_FOR_S1U | cut -f1 -d '/')
MME_IPV4_ADDRESS_FOR_S1_MME=$( echo $MME_IPV4_ADDRESS_FOR_S1_MME | cut -f1 -d '/') MME_IPV4_ADDRESS_FOR_S1_MME=$( echo $MME_IPV4_ADDRESS_FOR_S1_MME | cut -f1 -d '/')
#MME_IPV4_ADDRESS_FOR_S11_MME=$( echo $MME_IPV4_ADDRESS_FOR_S11_MME | cut -f1 -d '/') #MME_IPV4_ADDRESS_FOR_S11_MME=$( echo $MME_IPV4_ADDRESS_FOR_S11_MME | cut -f1 -d '/')
#SGW_IPV4_ADDRESS_FOR_S11=$( echo $SGW_IPV4_ADDRESS_FOR_S11 | cut -f1 -d '/') #SGW_IPV4_ADDRESS_FOR_S11=$( echo $SGW_IPV4_ADDRESS_FOR_S11 | cut -f1 -d '/')
...@@ -171,7 +173,7 @@ SGW_IPV4_ADDRESS_FOR_S1U_S12_S4_UP=$( echo $SGW_IPV4_ADDRESS_FOR_S1U_S12_ ...@@ -171,7 +173,7 @@ SGW_IPV4_ADDRESS_FOR_S1U_S12_S4_UP=$( echo $SGW_IPV4_ADDRESS_FOR_S1U_S12_
PGW_IPV4_ADDR_FOR_SGI=$( echo $PGW_IPV4_ADDR_FOR_SGI | cut -f1 -d '/') PGW_IPV4_ADDR_FOR_SGI=$( echo $PGW_IPV4_ADDR_FOR_SGI | cut -f1 -d '/')
clean_epc_vlan_network clean_epc_vlan_network
build_epc_vlan_network build_mme_spgw_vlan_network
test_epc_vlan_network test_epc_vlan_network
##################################################.. ##################################################..
......
...@@ -228,7 +228,7 @@ test_command_install_lib() { ...@@ -228,7 +228,7 @@ test_command_install_lib() {
# usage: test_command_install_package searched_binary package_to_be_installed_if_binary_not_found optional_option_to_apt_get_install # usage: test_command_install_package searched_binary package_to_be_installed_if_binary_not_found optional_option_to_apt_get_install
if [ ! -f $1 ]; then if [ ! -f $1 ]; then
echo_warning "$2 seems to be not installed, trying..." echo_warning "$2 seems to be not installed, trying..."
apt-get install $2 -y apt-get install $3 $2 -y
if [ ! -f $1 ]; then if [ ! -f $1 ]; then
echo_fatal "$1 unavailable" echo_fatal "$1 unavailable"
fi fi
...@@ -324,14 +324,13 @@ check_for_root_rights() { ...@@ -324,14 +324,13 @@ check_for_root_rights() {
} }
is_openvswitch_interface() { is_openvswitch_interface() {
echo $1 if [ "a${1:0:3}" == "aeth" ]; then
if [[ a${1:0:2} == aeth ]]; then
return 0; return 0;
else else
if [[ a${1:0:3} == awlan ]]; then if [ "a${1:0:4}" == "awlan" ]; then
return 0; return 0;
else else
if [[ a${1:0:3} == awifi ]]; then if [ "a${1:0:4}" == "awifi" ]; then
return 0; return 0;
fi fi
fi fi
...@@ -341,14 +340,14 @@ is_openvswitch_interface() { ...@@ -341,14 +340,14 @@ is_openvswitch_interface() {
is_real_interface() { is_real_interface() {
IF=`cat /etc/udev/rules.d/70-persistent-net.rules | grep $1 | sed 's/^.*NAME=//' | tr -d '"'` IF=`cat /etc/udev/rules.d/70-persistent-net.rules | grep $1 | sed 's/^.*NAME=//' | tr -d '"'`
if [[ $IF == $1 ]]; then if [ "$IF" == "$1" ]; then
if [[ a${1:0:2} == aeth ]]; then if [ "a${1:0:3}" == "aeth" ]; then
return 1; return 1;
else else
if [[ a${1:0:3} == awlan ]]; then if [ "a${1:0:4}" == "awlan" ]; then
return 1; return 1;
else else
if [[ a${1:0:3} == awifi ]]; then if [ "a${1:0:4}" == "awifi" ]; then
return 1; return 1;
fi fi
fi fi
...@@ -377,40 +376,40 @@ build_enb_vlan_network() { ...@@ -377,40 +376,40 @@ build_enb_vlan_network() {
# create vlan interface # create vlan interface
is_real_interface $ENB_INTERFACE_NAME_FOR_S1_MME is_real_interface $ENB_INTERFACE_NAME_FOR_S1_MME
if [ $? -eq 1 ]; then if [ $? -eq 1 ]; then
ifconfig "$ENB_INTERFACE_NAME_FOR_S1_MME".1 down" > /dev/null 2>&1 ifconfig $ENB_INTERFACE_NAME_FOR_S1_MME.1 down > /dev/null 2>&1
vconfig rem "$ENB_INTERFACE_NAME_FOR_S1_MME".1 > /dev/null 2>&1 vconfig rem $ENB_INTERFACE_NAME_FOR_S1_MME.1 > /dev/null 2>&1
sync sync
bash_exec "vconfig add ENB_INTERFACE_NAME_FOR_S1_MME 1" bash_exec "vconfig add ENB_INTERFACE_NAME_FOR_S1_MME 1"
sync sync
bash_exec "ip -4 addr add $ENB_IPV4_ADDRESS_FOR_S1_MME dev $ENB_INTERFACE_NAME_FOR_S1_MME.1" bash_exec "ip -4 addr add $ENB_IPV4_ADDRESS_FOR_S1_MME dev $ENB_INTERFACE_NAME_FOR_S1_MME.1"
else else
echo_fatal "BAD INTERFACE NAME FOR ENB S1-MME "$ENB_INTERFACE_NAME_FOR_S1_MME' (waiting for ethx)' echo_fatal "BAD INTERFACE NAME FOR ENB S1-MME $ENB_INTERFACE_NAME_FOR_S1_MME"' (waiting for ethx)'
fi; fi;
is_real_interface $ENB_INTERFACE_NAME_FOR_S1U is_real_interface $ENB_INTERFACE_NAME_FOR_S1U
if [ $? -eq 1 ]; then if [ $? -eq 1 ]; then
ifconfig "$ENB_INTERFACE_NAME_FOR_S1U".2 down" > /dev/null 2>&1 ifconfig $ENB_INTERFACE_NAME_FOR_S1U.2 down > /dev/null 2>&1
vconfig rem "$ENB_INTERFACE_NAME_FOR_S1U".2 > /dev/null 2>&1 vconfig rem $ENB_INTERFACE_NAME_FOR_S1U.2 > /dev/null 2>&1
sync sync
bash_exec "vconfig add ENB_INTERFACE_NAME_FOR_S1U 2" bash_exec "vconfig add ENB_INTERFACE_NAME_FOR_S1U 2"
sync sync
bash_exec "ip -4 addr add $ENB_IPV4_ADDRESS_FOR_S1U dev $ENB_INTERFACE_NAME_FOR_S1U.2" bash_exec "ip -4 addr add $ENB_IPV4_ADDRESS_FOR_S1U dev $ENB_INTERFACE_NAME_FOR_S1U".2
sync sync
else else
echo_fatal "BAD INTERFACE NAME FOR ENB S1U "$ENB_INTERFACE_NAME_FOR_S1U' (waiting for ethx)' echo_fatal "BAD INTERFACE NAME FOR ENB S1U $ENB_INTERFACE_NAME_FOR_S1U"' (waiting for ethx)'
fi; fi;
} }
clean_enb_vlan_network() { clean_enb_vlan_network() {
is_real_interface $ENB_INTERFACE_NAME_FOR_S1_MME is_real_interface $ENB_INTERFACE_NAME_FOR_S1_MME
if [ $? -eq 1 ]; then if [ $? -eq 1 ]; then
ifconfig "$ENB_INTERFACE_NAME_FOR_S1_MME".2 down" > /dev/null 2>&1 ifconfig $ENB_INTERFACE_NAME_FOR_S1_MME.1 down > /dev/null 2>&1
vconfig rem "$ENB_INTERFACE_NAME_FOR_S1_MME".1 > /dev/null 2>&1 vconfig rem $ENB_INTERFACE_NAME_FOR_S1_MME.1 > /dev/null 2>&1
fi; fi;
is_real_interface $ENB_INTERFACE_NAME_FOR_S1U is_real_interface $ENB_INTERFACE_NAME_FOR_S1U
if [ $? -eq 1 ]; then if [ $? -eq 1 ]; then
ifconfig "$ENB_INTERFACE_NAME_FOR_S1U".2 down" > /dev/null 2>&1 ifconfig $ENB_INTERFACE_NAME_FOR_S1U.2 down > /dev/null 2>&1
vconfig rem $ENB_INTERFACE_NAME_FOR_S1U.2 > /dev/null 2>&1 vconfig rem $ENB_INTERFACE_NAME_FOR_S1U.2 > /dev/null 2>&1
fi; fi;
sync; sync;
...@@ -466,26 +465,29 @@ build_mme_spgw_vlan_network() { ...@@ -466,26 +465,29 @@ build_mme_spgw_vlan_network() {
bash_exec "modprobe 8021q" bash_exec "modprobe 8021q"
# create vlan interface # create vlan interface
if [ is_real_interface $MME_INTERFACE_NAME_FOR_S1_MME ]; then is_real_interface $MME_INTERFACE_NAME_FOR_S1_MME
ifconfig "$MME_INTERFACE_NAME_FOR_S1_MME".1 down" > /dev/null 2>&1 if [ $? -eq 1 ]; then
bash_exec "vconfig rem $MME_INTERFACE_NAME_FOR_S1_MME.1" > /dev/null 2>&1 ifconfig $MME_INTERFACE_NAME_FOR_S1_MME.1 down > /dev/null 2>&1
vconfig rem $MME_INTERFACE_NAME_FOR_S1_MME.1 > /dev/null 2>&1
sync sync
bash_exec "vconfig add MME_INTERFACE_NAME_FOR_S1_MME 1" bash_exec "vconfig add $MME_INTERFACE_NAME_FOR_S1_MME 1"
sync sync
bash_exec "ip -4 addr add $MME_IPV4_ADDRESS_FOR_S1_MME dev $MME_INTERFACE_NAME_FOR_S1_MME.1" bash_exec "ip -4 addr add $MME_IPV4_ADDRESS_FOR_S1_MME dev $MME_INTERFACE_NAME_FOR_S1_MME.1"
else else
echo_fatal "BAD INTERFACE NAME FOR SGW S1-MME "$MME_INTERFACE_NAME_FOR_S1_MME' (waiting for ethx)' echo_fatal "BAD INTERFACE NAME FOR SGW S1-MME $MME_INTERFACE_NAME_FOR_S1_MME"' (waiting for ethx)'
fi; fi;
if [ is_real_interface $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP ]; then
ifconfig "$SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP".2 down" > /dev/null 2>&1 is_real_interface $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP
if [ $? -eq 1 ]; then
ifconfig $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP.2 down > /dev/null 2>&1
vconfig rem $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP.2 > /dev/null 2>&1 vconfig rem $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP.2 > /dev/null 2>&1
sync sync
bash_exec "vconfig add SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP 2" bash_exec "vconfig add $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP 2"
sync sync
bash_exec "ip -4 addr add $SGW_IPV4_ADDRESS_FOR_S1U_S12_S4_UP dev $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP.2" bash_exec "ip -4 addr add $SGW_IPV4_ADDRESS_FOR_S1U_S12_S4_UP dev $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP.2"
sync sync
else else
echo_fatal "BAD INTERFACE NAME FOR SGW S1U "$SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP' (waiting for ethx)' echo_fatal "BAD INTERFACE NAME FOR SGW S1U $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP"' (waiting for ethx)'
fi; fi;
ping -c 1 router.eur > /dev/null || { echo_fatal "router.eur does not respond to ping" >&2 ; } ping -c 1 router.eur > /dev/null || { echo_fatal "router.eur does not respond to ping" >&2 ; }
...@@ -578,7 +580,7 @@ build_mme_spgw_vlan_network() { ...@@ -578,7 +580,7 @@ build_mme_spgw_vlan_network() {
for i in 5 6 7 8 9 10 11 12 13 14 15 for i in 5 6 7 8 9 10 11 12 13 14 15
do do
# create vlan interface # create vlan interface
ifconfig "$PGW_INTERFACE_NAME_FOR_SGI".$i down" > /dev/null 2>&1 ifconfig $PGW_INTERFACE_NAME_FOR_SGI.$i down > /dev/null 2>&1
vconfig rem $PGW_INTERFACE_NAME_FOR_SGI.$i > /dev/null 2>&1 vconfig rem $PGW_INTERFACE_NAME_FOR_SGI.$i > /dev/null 2>&1
sync sync
bash_exec "vconfig add $PGW_INTERFACE_NAME_FOR_SGI $i" bash_exec "vconfig add $PGW_INTERFACE_NAME_FOR_SGI $i"
...@@ -632,17 +634,17 @@ clean_epc_vlan_network() { ...@@ -632,17 +634,17 @@ clean_epc_vlan_network() {
bash_exec "modprobe 8021q" bash_exec "modprobe 8021q"
ifconfig "$MME_INTERFACE_NAME_FOR_S1_MME".1 down" > /dev/null 2>&1 ifconfig $MME_INTERFACE_NAME_FOR_S1_MME.1 down > /dev/null 2>&1
vconfig rem $MME_INTERFACE_NAME_FOR_S1_MME.1 > /dev/null 2>&1 vconfig rem $MME_INTERFACE_NAME_FOR_S1_MME.1 > /dev/null 2>&1
ifconfig "$SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP".2 down" > /dev/null 2>&1 ifconfig $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP.2 down > /dev/null 2>&1
vconfig rem $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP.2 > /dev/null 2>&1 vconfig rem $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP.2 > /dev/null 2>&1
for i in 5 6 7 8 9 10 11 12 13 14 15 for i in 5 6 7 8 9 10 11 12 13 14 15
do do
# delete vlan interface # delete vlan interface
ifconfig "$PGW_INTERFACE_NAME_FOR_SGI".$i down" > /dev/null 2>&1 ifconfig $PGW_INTERFACE_NAME_FOR_SGI.$i down > /dev/null 2>&1
vconfig rem $PGW_INTERFACE_NAME_FOR_SGI.$i > /dev/null 2>&1 vconfig rem $PGW_INTERFACE_NAME_FOR_SGI.$i > /dev/null 2>&1
done done
ip link set $PGW_INTERFACE_NAME_FOR_SGI down > /dev/null 2>&1 ip link set $PGW_INTERFACE_NAME_FOR_SGI down > /dev/null 2>&1
...@@ -728,9 +730,9 @@ test_openvswitch_network() { ...@@ -728,9 +730,9 @@ test_openvswitch_network() {
iperf --bind $ENB_IPV4_ADDRESS_FOR_S1_MME -u --num 1K -c $MME_IPV4_ADDRESS_FOR_S1_MME 2>&1 | grep -i WARNING > /dev/null iperf --bind $ENB_IPV4_ADDRESS_FOR_S1_MME -u --num 1K -c $MME_IPV4_ADDRESS_FOR_S1_MME 2>&1 | grep -i WARNING > /dev/null
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
pkill iperf 2>&1 > /dev/null pkill iperf 2>&1 > /dev/null
echo_fatal "NETWORK ERROR CONFIGURATION (openvswitch) between ENB and MME S1" echo_fatal 'NETWORK ERROR CONFIGURATION (openvswitch) between ENB and MME S1'
else else
echo_success "NETWORK TEST SUCCESS (openvswitch) between ENB and MME S1" echo_success 'NETWORK TEST SUCCESS (openvswitch) between ENB and MME S1'
fi fi
pkill iperf 2>&1 > /dev/null pkill iperf 2>&1 > /dev/null
...@@ -739,9 +741,9 @@ test_openvswitch_network() { ...@@ -739,9 +741,9 @@ test_openvswitch_network() {
iperf --bind $ENB_IPV4_ADDRESS_FOR_S1U -u --num 1K -c $SGW_IPV4_ADDRESS_FOR_S1U_S12_S4_UP 2>&1 | grep -i WARNING > /dev/null iperf --bind $ENB_IPV4_ADDRESS_FOR_S1U -u --num 1K -c $SGW_IPV4_ADDRESS_FOR_S1U_S12_S4_UP 2>&1 | grep -i WARNING > /dev/null
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
pkill iperf 2>&1 > /dev/null pkill iperf 2>&1 > /dev/null
echo_fatal "NETWORK ERROR CONFIGURATION (openvswitch) between ENB and S-GW S1-U" echo_fatal 'NETWORK ERROR CONFIGURATION (openvswitch) between ENB and S-GW S1-U'
else else
echo_success "NETWORK TEST SUCCESS (openvswitch) between ENB and S-GW S1-U" echo_success 'NETWORK TEST SUCCESS (openvswitch) between ENB and S-GW S1-U'
fi fi
pkill iperf 2>&1 > /dev/null pkill iperf 2>&1 > /dev/null
...@@ -749,9 +751,9 @@ test_openvswitch_network() { ...@@ -749,9 +751,9 @@ test_openvswitch_network() {
iperf --bind $MME_IPV4_ADDRESS_FOR_S11_MME -u --num 1K -c $SGW_IPV4_ADDRESS_FOR_S11 2>&1 | grep -i WARNING > /dev/null iperf --bind $MME_IPV4_ADDRESS_FOR_S11_MME -u --num 1K -c $SGW_IPV4_ADDRESS_FOR_S11 2>&1 | grep -i WARNING > /dev/null
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
pkill iperf 2>&1 > /dev/null pkill iperf 2>&1 > /dev/null
echo_fatal "NETWORK ERROR CONFIGURATION (openvswitch) between MME and S-GW S11" echo_fatal 'NETWORK ERROR CONFIGURATION (openvswitch) between MME and S-GW S11'
else else
echo_success "NETWORK TEST SUCCESS (openvswitch) between MME and S-GW S11" echo_success 'NETWORK TEST SUCCESS (openvswitch) between MME and S-GW S11'
fi fi
pkill iperf 2>&1 > /dev/null pkill iperf 2>&1 > /dev/null
return 0 return 0
...@@ -887,7 +889,7 @@ build_epc_ovs_network() { ...@@ -887,7 +889,7 @@ build_epc_ovs_network() {
for i in 5 6 7 8 9 10 11 12 13 14 15 for i in 5 6 7 8 9 10 11 12 13 14 15
do do
# create vlan interface # create vlan interface
ifconfig "$PGW_INTERFACE_NAME_FOR_SGI".$i down" > /dev/null 2>&1 ifconfig $PGW_INTERFACE_NAME_FOR_SGI.$i down > /dev/null 2>&1
vconfig rem $PGW_INTERFACE_NAME_FOR_SGI.$i > /dev/null 2>&1 vconfig rem $PGW_INTERFACE_NAME_FOR_SGI.$i > /dev/null 2>&1
sync sync
bash_exec "vconfig add $PGW_INTERFACE_NAME_FOR_SGI $i" bash_exec "vconfig add $PGW_INTERFACE_NAME_FOR_SGI $i"
...@@ -969,8 +971,8 @@ clean_epc_ovs_network() { ...@@ -969,8 +971,8 @@ clean_epc_ovs_network() {
for i in 5 6 7 8 9 10 11 12 13 14 15 for i in 5 6 7 8 9 10 11 12 13 14 15
do do
bash_exec "ifconfig $PGW_INTERFACE_NAME_FOR_SGI.$i down" > /dev/null 2>&1 ifconfig $PGW_INTERFACE_NAME_FOR_SGI.$i down > /dev/null 2>&1
bash_exec "vconfig rem $PGW_INTERFACE_NAME_FOR_SGI.$i" > /dev/null 2>&1 vconfig rem $PGW_INTERFACE_NAME_FOR_SGI.$i > /dev/null 2>&1
done done
clean_openvswitch_network clean_openvswitch_network
......
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