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:
Olivier Tilmans
2016-04-17 23:07:34 +02:00
parent e171aba8b5
commit 07fbc894e7
+1
View File
@@ -49,6 +49,7 @@ class Intf( object ):
# This saves an ifconfig command per node # This saves an ifconfig command per node
if self.name == 'lo': if self.name == 'lo':
self.ip = '127.0.0.1' self.ip = '127.0.0.1'
self.prefixLen = 8
# Add to node (and move ourselves if necessary ) # Add to node (and move ourselves if necessary )
moveIntfFn = params.pop( 'moveIntfFn', None ) moveIntfFn = params.pop( 'moveIntfFn', None )
if moveIntfFn: if moveIntfFn: