summaryrefslogtreecommitdiff
path: root/src/conf_mode/policy.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-12-11 20:14:45 +0100
committerChristian Breunig <christian@breunig.cc>2024-12-16 22:24:50 +0100
commit55683a8406e17408021437cb35b57c48bd8b2ab1 (patch)
treebc149befb6ceadc94bf57503c65dd9267339edf0 /src/conf_mode/policy.py
parent779f311e7fe81e3c85de28f13e4e12e33b255483 (diff)
downloadvyos-1x-55683a8406e17408021437cb35b57c48bd8b2ab1.tar.gz
vyos-1x-55683a8406e17408021437cb35b57c48bd8b2ab1.zip
configd: T6746: handle FRR config reload as last step in commit
Diffstat (limited to 'src/conf_mode/policy.py')
-rwxr-xr-xsrc/conf_mode/policy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/policy.py b/src/conf_mode/policy.py
index 2122cb032..4abb150ac 100755
--- a/src/conf_mode/policy.py
+++ b/src/conf_mode/policy.py
@@ -262,12 +262,12 @@ def verify(config_dict):
def generate(config_dict):
- if 'frrender_cls' not in config_dict:
+ if config_dict and 'frrender_cls' not in config_dict:
FRRender().generate(config_dict)
return None
def apply(config_dict):
- if 'frrender_cls' not in config_dict:
+ if config_dict and 'frrender_cls' not in config_dict:
FRRender().apply()
return None