From fa184c3357977fa47f7108c7c99bd8920c43af94 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Fri, 4 Jul 2025 17:15:45 -0500 Subject: T7499: clean up cache files --- python/vyos/configsource.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/vyos/configsource.py b/python/vyos/configsource.py index 3931f1295..949216722 100644 --- a/python/vyos/configsource.py +++ b/python/vyos/configsource.py @@ -345,6 +345,11 @@ class ConfigSourceVyconfSession(ConfigSource): self._running_config = ConfigTree(internal=self.running_cache_path) self._session_config = ConfigTree(internal=self.session_cache_path) + if os.path.isfile(self.running_cache_path): + os.remove(self.running_cache_path) + if os.path.isfile(self.session_cache_path): + os.remove(self.session_cache_path) + # N.B. level not yet implemented pending integration with legacy CLI # cf. T7374 self._level = [] -- cgit v1.2.3