fix bug #253 "NetworkManager runs DHCP..." for Ubuntu (but not Fedora/CentOS)

use "vethA.B.SS" name for veth devices (A = node number, B = index, SS = short session ID)
use "tapA.B.SS" name for tap devices; use "b.A.SS" name for bridge devices
added a SESSION_SHORT environment variable to the default CORE environment
(Boeing r1867)
This commit is contained in:
ahrenholz 2014-08-04 17:28:35 +00:00
parent 4487767fa4
commit 66ebcb5cf4
5 changed files with 9 additions and 6 deletions

View file

@ -45,7 +45,7 @@ killall -q emanetransportd
killall -q emaneeventservice
ifconfig -a | awk '
/^n[0-9]+/ {print "removing interface " $1; system("ip link del " $1);}
/^veth[0-9]+\./ {print "removing interface " $1; system("ip link del " $1);}
/tmp\./ {print "removing interface " $1; system("ip link del " $1);}
/gt\./ {print "removing interface " $1; system("ip link del " $1);}
/b\./ {print "removing bridge " $1; system("ip link set " $1 " down; brctl delbr " $1);}