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

@ -211,7 +211,8 @@ class LxBrNet(PyCoreNet):
if policy is not None:
self.policy = policy
self.name = name
self.brname = "b.%s.%s" % (str(self.objid), self.session.sessionid)
sessionid = self.session.shortsessionid()
self.brname = "b.%s.%s" % (str(self.objid), sessionid)
self.up = False
if start:
self.startup()