Don't call node.addIntf() if node is None

fixes #716
This commit is contained in:
Bob Lantz committed 2017-05-24 15:11:03 -07:00
1 parent aa8901268d
commit a6627cd928
1 file changed
+1
+1
View File
@@ -50,6 +50,7 @@ class Intf( object ):
self.ip = '127.0.0.1'
self.prefixLen = 8
# Add to node (and move ourselves if necessary )
if node:
moveIntfFn = params.pop( 'moveIntfFn', None )
if moveIntfFn:
node.addIntf( self, port=port, moveIntfFn=moveIntfFn )