link: Set prefixLen for loopback address
The prefixLen for a loopback address is well-defined (/8), and as such the variable is set accordingly. Signed-off-by: Olivier Tilmans <olivier.tilmans@uclouvain.be>
This commit is contained in:
@@ -49,6 +49,7 @@ class Intf( object ):
|
||||
# This saves an ifconfig command per node
|
||||
if self.name == 'lo':
|
||||
self.ip = '127.0.0.1'
|
||||
self.prefixLen = 8
|
||||
# Add to node (and move ourselves if necessary )
|
||||
moveIntfFn = params.pop( 'moveIntfFn', None )
|
||||
if moveIntfFn:
|
||||
|
||||
Reference in New Issue
Block a user