Commit b4538302 authored by Lionel Gauthier's avatar Lionel Gauthier

Can disable SGI interface

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5131 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 69f29c28
...@@ -543,6 +543,9 @@ build_mme_spgw_vlan_network() { ...@@ -543,6 +543,9 @@ build_mme_spgw_vlan_network() {
echo_fatal "BAD INTERFACE NAME FOR SGW S1U $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP"' (waiting for ethx.y, wlanx.y or wifix.y)' echo_fatal "BAD INTERFACE NAME FOR SGW S1U $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP"' (waiting for ethx.y, wlanx.y or wifix.y)'
fi; fi;
#
is_real_interface $PGW_INTERFACE_NAME_FOR_SGI
if [ $? -eq 1 ]; then
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 ; }
IP_ROUTER=`python -c 'import socket; print socket.gethostbyname("router.eur")'` IP_ROUTER=`python -c 'import socket; print socket.gethostbyname("router.eur")'`
export MAC_ROUTER=`ip neigh show | grep $IP_ROUTER | cut -d ' ' -f5 | tr -d ':'` export MAC_ROUTER=`ip neigh show | grep $IP_ROUTER | cut -d ' ' -f5 | tr -d ':'`
...@@ -650,6 +653,9 @@ build_mme_spgw_vlan_network() { ...@@ -650,6 +653,9 @@ build_mme_spgw_vlan_network() {
fi fi
bash_exec "ip link set $PGW_INTERFACE_NAME_FOR_SGI promisc on" bash_exec "ip link set $PGW_INTERFACE_NAME_FOR_SGI promisc on"
else
echo_warning "SGI interface disabled by config file"
fi
} }
clean_epc_vlan_network() { clean_epc_vlan_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