mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 06:55:18 +00:00
Merge pull request #10798 from Jafaral/topo-detect-pim
topotest: enable pim when detecting `ip pim` using unified config
This commit is contained in:
commit
79f4d05c7a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user