@ -72,6 +72,7 @@ class Cliconf(CliconfBase):
@enable_mode
@enable_mode
def edit_config ( self , command ) :
def edit_config ( self , command ) :
results = [ ]
for cmd in chain ( [ ' configure terminal ' ] , to_list ( command ) , [ ' end ' ] ) :
for cmd in chain ( [ ' configure terminal ' ] , to_list ( command ) , [ ' end ' ] ) :
if isinstance ( cmd , dict ) :
if isinstance ( cmd , dict ) :
command = cmd [ ' command ' ]
command = cmd [ ' command ' ]
@ -84,7 +85,8 @@ class Cliconf(CliconfBase):
answer = None
answer = None
newline = True
newline = True
self . send_command ( command , prompt , answer , False , newline )
results . append ( self . send_command ( command , prompt , answer , False , newline ) )
return results [ 1 : - 1 ]
def get ( self , command , prompt = None , answer = None , sendonly = False ) :
def get ( self , command , prompt = None , answer = None , sendonly = False ) :
return self . send_command ( command , prompt = prompt , answer = answer , sendonly = sendonly )
return self . send_command ( command , prompt = prompt , answer = answer , sendonly = sendonly )