]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: fix bug in handling of daemons to start 7160/head
authorMark Stapp <mjs@voltanet.io>
Wed, 23 Sep 2020 12:48:25 +0000 (08:48 -0400)
committerMark Stapp <mjs@voltanet.io>
Wed, 23 Sep 2020 12:48:25 +0000 (08:48 -0400)
Ensure the list of daemons to start is either the one specified
by a caller or the default one from the router configuration.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
tests/topotests/lib/topotest.py

index e34d1cf0be3605388d3f93c229957c05ba38afcf..dbc76e56ff5e2e66d4572b727963691761d4218a 100644 (file)
@@ -1340,7 +1340,9 @@ class Router(Node):
         # If `daemons` was specified then some upper API called us with
         # specific daemons, otherwise just use our own configuration.
         daemons_list = []
-        if daemons is None:
+        if daemons != None:
+            daemons_list = daemons
+        else:
             # Append all daemons configured.
             for daemon in self.daemons:
                 if self.daemons[daemon] == 1: