Skip to content

Commit

Permalink
check in discard_config if a commit is pending
Browse files Browse the repository at this point in the history
remove a pending commit before discarding the config
  • Loading branch information
Christian Schirge committed Nov 15, 2021
1 parent d8b672f commit 518fbb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions napalm_arubaoss/ArubaOS.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ def discard_config(self):
:return:
"""
if self.has_pending_commit():
self.load_merge_candidate(config="no job ROLLBACK")

backup_config(self=self, destination="REST_Payload_Backup")

def get_arp_table(self, vrf=""):
Expand Down

0 comments on commit 518fbb9

Please sign in to comment.