From 07fbc894e7921f10c61860bf04959a75f239659b Mon Sep 17 00:00:00 2001 From: Olivier Tilmans Date: Fri, 15 Apr 2016 15:39:56 +0200 Subject: [PATCH] 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 --- mininet/link.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mininet/link.py b/mininet/link.py index 9703ce7..edb072b 100644 --- a/mininet/link.py +++ b/mininet/link.py @@ -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: