Skip to content

Commit

Permalink
Merge pull request #16701 from Jafaral/unified-config
Browse files Browse the repository at this point in the history
tests: detect all daemons correctly when using frr.conf
  • Loading branch information
donaldsharp authored Aug 31, 2024
2 parents 0c14da4 + 02256fd commit 3bf359b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/topotests/lib/topogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,10 +832,10 @@ def load_frr_config(self, source, daemons=None):
for daemon in self.RD:
# This will not work for all daemons
daemonstr = self.RD.get(daemon).rstrip("d")
if daemonstr == "pim":
grep_cmd = "grep 'ip {}' {}".format(daemonstr, source_path)
if daemonstr == "path":
grep_cmd = "grep 'candidate-path' {}".format(source_path)
else:
grep_cmd = "grep 'router {}' {}".format(daemonstr, source_path)
grep_cmd = "grep -w '{}' {}".format(daemonstr, source_path)
result = self.run(grep_cmd, warn=False).strip()
if result:
self.load_config(daemon, "")
Expand Down

0 comments on commit 3bf359b

Please sign in to comment.