Skip to content

Commit

Permalink
Merge pull request #1448 from indy-independence/develop
Browse files Browse the repository at this point in the history
JunOS discard config if loading fails, fixes #1445
  • Loading branch information
mirceaulinic authored Nov 29, 2021

Unverified

This user has not yet uploaded their public signing key.
2 parents 320d9d2 + 63249db commit b55dd5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions napalm/junos/junos.py
Original file line number Diff line number Diff line change
@@ -267,6 +267,7 @@ def _load_candidate(self, filename, config, overwrite):
ignore_warning=self.ignore_warning,
)
except ConfigLoadError as e:
self.discard_config()
if self.config_replace:
raise ReplaceConfigException(e.errs)
else:

0 comments on commit b55dd5f

Please sign in to comment.