summaryrefslogtreecommitdiff
path: root/python/vyos/frrender.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 /python/vyos/frrender.py
parent779f311e7fe81e3c85de28f13e4e12e33b255483 (diff)
downloadveeos-1x-55683a8406e17408021437cb35b57c48bd8b2ab1.tar.gz
veeos-1x-55683a8406e17408021437cb35b57c48bd8b2ab1.zip
configd: T6746: handle FRR config reload as last step in commit
Diffstat (limited to 'python/vyos/frrender.py')
-rw-r--r--python/vyos/frrender.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/vyos/frrender.py b/python/vyos/frrender.py
index e02094bbb..f1bb39094 100644
--- a/python/vyos/frrender.py
+++ b/python/vyos/frrender.py
@@ -44,7 +44,8 @@ class FRRender:
def generate(self, config):
if not isinstance(config, dict):
- raise ValueError('config must be of type dict')
+ tmp = type(config)
+ raise ValueError(f'Config must be of type "dict" and not "{tmp}"!')
def inline_helper(config_dict) -> str:
output = '!\n'
@@ -136,7 +137,7 @@ class FRRender:
emsg = ''
while count < count_max:
count += 1
- print('FRR: Reloading configuration - tries:', count, 'Python class ID:', id(self))
+ debug(f'FRR: Reloading configuration - tries: {count} | Python class ID: {id(self)}')
cmdline = '/usr/lib/frr/frr-reload.py --reload'
if DEBUG_ON: