]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: Fixup output that was incorrect in nhrp_topo 10290/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 5 Jan 2022 14:15:26 +0000 (09:15 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 6 Jan 2022 12:33:11 +0000 (07:33 -0500)
The nhrp_topo test sets up some infrastructure and
was displaying the commands it was outputting
incorrectly.  Fix this.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
tests/topotests/nhrp_topo/test_nhrp_topo.py

index 313ffd5ce9c0f54813517f6c442a26ba52f96521..e6e551906a981f6acb17fa0d4509c5c12e82baa6 100644 (file)
@@ -87,14 +87,14 @@ def _populate_iface():
 
     for cmd in cmds_tot_hub:
         input = cmd.format("r2", "2")
-        logger.info("input: " + cmd)
-        output = tgen.net["r2"].cmd(cmd.format("r2", "2"))
+        logger.info("input: " + input)
+        output = tgen.net["r2"].cmd(input)
         logger.info("output: " + output)
 
     for cmd in cmds_tot:
         input = cmd.format("r1", "1")
-        logger.info("input: " + cmd)
-        output = tgen.net["r1"].cmd(cmd.format("r1", "1"))
+        logger.info("input: " + input)
+        output = tgen.net["r1"].cmd(input)
         logger.info("output: " + output)