diff options
| author | Christian Breunig <christian@breunig.cc> | 2024-12-11 20:14:45 +0100 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2024-12-16 22:24:50 +0100 |
| commit | 55683a8406e17408021437cb35b57c48bd8b2ab1 (patch) | |
| tree | bc149befb6ceadc94bf57503c65dd9267339edf0 /python/vyos/frrender.py | |
| parent | 779f311e7fe81e3c85de28f13e4e12e33b255483 (diff) | |
| download | veeos-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.py | 5 |
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: |
