Drop now obsolete UML helper functions

This commit is contained in:
Reto Buerki
2013-01-17 16:54:55 +01:00
committed by Tobias Brunner
parent 345dba0de4
commit aba43136c2
-44
View File
@@ -184,47 +184,3 @@ function searchandreplace {
done
}
#############################################
# add a bridge
#
function umlbr_add {
brctl addbr "umlbr$1"
brctl setfd "umlbr$1" 0
brctl setageing "umlbr$1" 3600
brctl stp "umlbr$1" off
ifconfig "umlbr$1" "$2" netmask "$3" up
}
#############################################
# delete a bridge
#
function umlbr_del {
ifconfig "umlbr$1" down &> /dev/null 2>&1
brctl delbr "umlbr$1" &> /dev/null 2>&1
}
#############################################
# add a tap interface to a bridge
#
function umlbr_add_tap {
tunctl -t "tap$1_$2" &> /dev/null 2>&1
ifconfig "tap$1_$2" 0.0.0.0 promisc up &> /dev/null 2>&1
brctl addif "umlbr$1" "tap$1_$2" &> /dev/null 2>&1
cecho-n "$2.."
}
#############################################
# delete a tap interface from a bridge
#
function umlbr_del_tap {
ifconfig "umlbr$2" down &> /dev/null 2>&1
brctl delif "umlbr$1" "tap$1_$2" &> /dev/null 2>&1
tunctl -d "tap$1_$2" &> /dev/null 2>&1
cecho-n "$2.."
}