]> git.proxmox.com Git - mirror_frr.git/commitdiff
tests: fix improper format strings in pim lib
authorQuentin Young <qlyoung@nvidia.com>
Tue, 23 Mar 2021 22:49:35 +0000 (22:49 +0000)
committerQuentin Young <qlyoung@nvidia.com>
Wed, 7 Apr 2021 17:31:27 +0000 (13:31 -0400)
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
tests/topotests/lib/pim.py

index 970367a882eefe6bf6c2158942106c02feb299d3..265449df21ce231087fb192ce049d833275f16b9 100644 (file)
@@ -1400,14 +1400,10 @@ def verify_pim_state(
                     errormsg = (
                         "[DUT %s]: Verifying pim state for group"
                         " %s, [FAILED]!! Expected: "
-                        "(iif: %s, oil: %s, installed: %s) ",
+                        "(iif: %s, oil: %s, installed: %s) "
+                        % (dut, grp_addr, iif, oil, "1"),
                         "Found: (iif: %s, oil: %s, installed: %s)"
                         % (
-                            dut,
-                            grp_addr,
-                            iif,
-                            oil,
-                            "1",
                             data["inboundInterface"],
                             data["outboundInterface"],
                             data["installed"],
@@ -2688,7 +2684,7 @@ def verify_igmp_config(tgen, input_dict, stats_return=False):
 
             if statistics and report:
                 show_ip_igmp_intf_json = run_frr_cmd(
-                    rnode, "{} json".format(cmd, interface), isjson=True
+                    rnode, "{} json".format(cmd), isjson=True
                 )
                 intf_detail_json = show_ip_igmp_intf_json["global"]
             else:
@@ -2764,7 +2760,6 @@ def verify_igmp_config(tgen, input_dict, stats_return=False):
                                         dut,
                                         interface,
                                         value,
-                                        intf_detail_json["reportV2"],
                                     )
                                 )
                                 return errormsg