junos cliconf diff fix (#44109)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
b14f256d41
commit
227bf61daa
1 changed files with 5 additions and 0 deletions
|
@ -167,6 +167,11 @@ class Cliconf(CliconfBase):
|
||||||
if rollback_id is not None:
|
if rollback_id is not None:
|
||||||
command += ' rollback %s' % int(rollback_id)
|
command += ' rollback %s' % int(rollback_id)
|
||||||
resp = self.send_command(command)
|
resp = self.send_command(command)
|
||||||
|
|
||||||
|
r = resp.splitlines()
|
||||||
|
if len(r) == 1 and r[0] == '[edit]':
|
||||||
|
resp = ''
|
||||||
|
|
||||||
return resp
|
return resp
|
||||||
|
|
||||||
def get_diff(self, rollback_id=None):
|
def get_diff(self, rollback_id=None):
|
||||||
|
|
Loading…
Reference in a new issue