Skip to content

Commit

Permalink
fix: cleanup candidate_running.conf after it's loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
yzguy committed Jun 21, 2023
1 parent cc58ee6 commit 3c2dd2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions napalm_vyos/vyos.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ def load_replace_candidate(self, filename=None, config=None):
match_notchanged = re.findall("No configuration changes to commit", output_loadcmd)
match_failed = re.findall("Failed to parse specified config file", output_loadcmd)

# Clean up candidate configuration
self.device.send_command("rm -f "+self._DEST_FILENAME)

if match_failed:
raise ReplaceConfigException("Failed replace config: "
+ output_loadcmd)
Expand Down

0 comments on commit 3c2dd2b

Please sign in to comment.