From 689ab2f28154beba3c27c3b218147ddf3c6bacf4 Mon Sep 17 00:00:00 2001 From: Eldon Koyle Date: Tue, 23 Nov 2021 13:59:16 -0700 Subject: [PATCH] if we are ignoring warnings, also ignore them on discard --- napalm/junos/junos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napalm/junos/junos.py b/napalm/junos/junos.py index 37f6ba4db..3fc36d28c 100644 --- a/napalm/junos/junos.py +++ b/napalm/junos/junos.py @@ -383,7 +383,7 @@ def confirm_commit(self): def discard_config(self): """Discard changes (rollback 0).""" - self.device.cu.rollback(rb_id=0) + self.device.cu.rollback(rb_id=0, ignore_warning=self.ignore_warning) if not self.lock_disable and not self.session_config_lock: self._unlock() if self.config_private: