From 037298f927f19ef2a23ed6f90aeabf6c31bc078d Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 6 Sep 2024 11:53:19 +0200 Subject: [PATCH] topotato: fix `routers =` parametric Accidentally lost this during the `FRRParams` refactor. Signed-off-by: David Lamparter --- topotato/frr/params.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/topotato/frr/params.py b/topotato/frr/params.py index 8f26745..a30caef 100644 --- a/topotato/frr/params.py +++ b/topotato/frr/params.py @@ -220,11 +220,13 @@ def __init_subclass__(cls, /, **kwargs): cls.templates = {} cls.daemon_rtrs = {} + all_routers = getattr(cls, "routers", None) + for daemon in FRRSetup.daemons_all: if not hasattr(cls, daemon): continue cls.templates[daemon] = jenv.compile_class_attr(cls, daemon) - cls.daemon_rtrs[daemon] = getattr(cls, "%s_routers" % daemon, None) + cls.daemon_rtrs[daemon] = getattr(cls, "%s_routers" % daemon, all_routers) return cls