Added the 'show commit config diff' output available from the IOSXR device (#54875)

This commit is contained in:
Martin Ouimet 2019-05-27 08:00:14 -04:00 committed by Sumit Jaiswal
parent cab02b7832
commit 398f4b8233
2 changed files with 10 additions and 0 deletions

View file

@ -116,6 +116,11 @@ class Cliconf(CliconfBase):
results.append(self.send_command(**line))
requests.append(cmd)
# Before any commit happend, we can get a real configuration
# diff from the device and make it available by the iosxr_config module.
# This information can be usefull either in check mode or normal mode.
resp['show_commit_config_diff'] = self.get('show commit changes diff')
if commit:
self.commit(comment=comment, label=label, replace=replace)
else: