diff --git a/napalm/ios/ios.py b/napalm/ios/ios.py index 6235f5880..bac0420af 100644 --- a/napalm/ios/ios.py +++ b/napalm/ios/ios.py @@ -564,6 +564,13 @@ def commit_config(self, message="", revert_in=None): ): msg = "Candidate config could not be applied\n{}".format(output) raise ReplaceConfigException(msg) + elif "rollback aborted" in output.lower(): + msg = ( + "Candidate config could not be applied, " + "attempting rollback\n{}".format(output) + ) + self.rollback() + raise ReplaceConfigException(msg) elif "%Please turn config archive on" in output: if revert_in_min: raise CommitConfirmException(ARCHIVE_DISABLED_MESSAGE)