]> git.proxmox.com Git - mirror_frr.git/commitdiff
topotest: enable pim when detecting pim using unified config
authorJafar Al-Gharaibeh <jafar@atcorp.com>
Tue, 15 Mar 2022 05:28:44 +0000 (00:28 -0500)
committerJafar Al-Gharaibeh <jafar@atcorp.com>
Wed, 16 Mar 2022 03:29:52 +0000 (22:29 -0500)
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
tests/topotests/lib/topogen.py

index a83ae7071f7acad2adc9efdeefd91a0f2eca82c4..4ed5b2f8258f50996a2f8b9c7f930d2179b95422 100644 (file)
@@ -804,9 +804,11 @@ class TopoRouter(TopoGear):
             for daemon in self.RD:
                 # This will not work for all daemons
                 daemonstr = self.RD.get(daemon).rstrip("d")
-                result = self.run(
-                    "grep 'router {}' {}".format(daemonstr, source)
-                ).strip()
+                if daemonstr == "pim":
+                    grep_cmd = "grep 'ip {}' {}".format(daemonstr, source)
+                else:
+                    grep_cmd = "grep 'router {}' {}".format(daemonstr, source)
+                result = self.run(grep_cmd).strip()
                 if result:
                     self.load_config(daemon)
         else: