Itti logs

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4937 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
Lionel Gauthier
2014-01-23 15:47:10 +00:00
parent 5183702a5c
commit 0c71d2abfc
3 changed files with 25 additions and 7 deletions
+15 -5
View File
@@ -122,6 +122,15 @@ extract() {
return 0
}
rotate_log_file () {
if [ -f $1 ]; then
TIMESTAMP=`date +%Y-%m-%d.%Hh_%Mm_%Ss`
NEWLOGFILE=$1.$TIMESTAMP
mv $1 $NEWLOGFILE
cat /dev/null > $1
nohup gzip -f -9 $NEWLOGFILE &
fi
}
set_openair() {
path=`pwd`
@@ -339,11 +348,11 @@ build_openvswitch_network() {
# | |cpenb0+------------------+cpmme0| | +------+ | |
# | +------+ |bridge| +------+ +----+ +---+ |
# | |upenb0+-------+ | | | +----------+
# +-----------+------+ | | | +-+-------+-+
# | | +----------------| s11mme|---+
# | | +---+---+ |
# | | (optional)| |
# | | +---+---+ |
# | +------+ | | | +-+-------+-+
# | | | | +----------------| s11mme|---+
# | | | | +---+---+ |
# | | | | (optional)| |
# +-----------+ | | +---+---+ |
# +---|------------------ | s11sgw|---+ router.eur
# | +-+-------+-+ | +--------------+
# | | S+P-GW | v | ROUTER |
@@ -423,6 +432,7 @@ test_openvswitch_network() {
echo_success "NETWORK TEST SUCCESS (openvswitch) between MME and S-GW S11"
fi
pkill iperf 2>&1 > /dev/null
return 0
}
build_epc_network() {