Skip to content

Commit c6faee0

Browse files
committed
tests: Allow bfdd to be part of the unified config world
The unified config loader was not properly handling bfdd. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
1 parent 886d4ea commit c6faee0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/topotests/lib/topogen.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -847,8 +847,12 @@ def load_frr_config(self, source, daemons=None):
847847
# Always add zebra
848848
self.load_config(self.RD_ZEBRA, "")
849849
for daemon in self.RD:
850-
# This will not work for all daemons
851-
daemonstr = self.RD.get(daemon).rstrip("d")
850+
# Special case for bfdd - search for 'bfd' in config files, not 'bf' which is too generic
851+
if daemon == self.RD_BFD:
852+
daemonstr = "bfd"
853+
else:
854+
daemonstr = self.RD.get(daemon).rstrip("d")
855+
852856
if daemonstr == "path":
853857
grep_cmd = "grep 'candidate-path' {}".format(source_path)
854858
else:

0 commit comments

Comments
 (0)