Fix link command parsing bug
This commit is contained in:
@@ -149,6 +149,7 @@ class CLI( Cmd ):
|
|||||||
|
|
||||||
def do_link( self, args ):
|
def do_link( self, args ):
|
||||||
"Bring a link up or down."
|
"Bring a link up or down."
|
||||||
|
args = args.split()
|
||||||
if len(args) != 3:
|
if len(args) != 3:
|
||||||
error( 'invalid number of args: link [up down] end1 end2\n' )
|
error( 'invalid number of args: link [up down] end1 end2\n' )
|
||||||
elif args[ 0 ] not in [ 'up', 'down' ]:
|
elif args[ 0 ] not in [ 'up', 'down' ]:
|
||||||
|
|||||||
Reference in New Issue
Block a user