From b367664363c80f0a61471c531c132d4dd3301799 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Thu, 8 Aug 2024 11:24:31 +0300 Subject: [PATCH] tests: Start ldpd if unified config is used in topotests E.g.: ``` for _, (rname, router) in enumerate(router_list.items(), 1): router.load_frr_config(os.path.join(CWD, "{}/frr.conf".format(rname))) ``` Signed-off-by: Donatas Abraitis --- tests/topotests/lib/topotest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index 1d4bc2eac6a5..e3e70b798130 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -1749,7 +1749,8 @@ def startRouter(self, tgen=None): self.removeIPs() # If ldp is used, check for LDP to be compiled and Linux Kernel to be 4.5 or higher # No error - but return message and skip all the tests - if self.daemons["ldpd"] == 1: + if self.daemons["ldpd"] == 1 or self.unified_config: + self.daemons["ldpd"] = 1 ldpd_path = os.path.join(self.daemondir, "ldpd") if not os.path.isfile(ldpd_path): logger.info("LDP Test, but no ldpd compiled or installed")