Default ipv6 action should be 'add'

This commit is contained in:
Bob Lantz
2015-04-14 14:20:07 -07:00
parent 5a7b8f9833
commit dd0abe0e12
+1 -1
View File
@@ -67,7 +67,7 @@ class Intf( object ):
"Configure ourselves using ifconfig"
return self.cmd( 'ifconfig', self.name, *args )
def setIP( self, ip, prefixLen=8, action=None ):
def setIP( self, ip, prefixLen=8, action='add' ):
"""Set our IP address(es) and bring interface up
ip: IP address string or list
prefixLen: optional default prefix length if '/' not in addr (8)