From 3800ea910a72a4d1a78b63f235980d9414747816 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 27 Nov 2021 10:32:02 +0100 Subject: isis: T3753: reload config five (5) times - workaround for FRR issue #10133 Re-applying the same configuration after it failed the first times makes it load. See https://github.com/FRRouting/frr/issues/10133 for more details --- src/conf_mode/protocols_isis.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/conf_mode/protocols_isis.py b/src/conf_mode/protocols_isis.py index 3a0c40dc6..5d02de869 100755 --- a/src/conf_mode/protocols_isis.py +++ b/src/conf_mode/protocols_isis.py @@ -234,7 +234,15 @@ def apply(isis): if 'frr_isisd_config' in isis: frr_cfg.add_before(frr.default_add_before, isis['frr_isisd_config']) - frr_cfg.commit_configuration(isis_daemon) + + # https://github.com/FRRouting/frr/issues/XXXX + count = 0 + while count <= 5: + count += 1 + try: + frr_cfg.commit_configuration(isis_daemon) + except: + pass # Save configuration to /run/frr/config/frr.conf frr.save_configuration() -- cgit v1.2.3