mirror of
https://github.com/napalm-automation-community/napalm-vyos.git
synced 2026-09-23 04:31:16 +00:00
display errors from failed commits
This commit is contained in:
@@ -211,8 +211,8 @@ class VyOSDriver(NetworkDriver):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
self.device.commit()
|
self.device.commit()
|
||||||
except ValueError:
|
except ValueError as err:
|
||||||
raise CommitError("Failed to commit config on the device")
|
raise CommitError('\n\n{}'.format(err))
|
||||||
|
|
||||||
self.device.send_config_set(['save'])
|
self.device.send_config_set(['save'])
|
||||||
self.device.exit_config_mode()
|
self.device.exit_config_mode()
|
||||||
|
|||||||
Reference in New Issue
Block a user