summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2021-03-23 23:53:01 +0100
committerQuentin Young <qlyoung@nvidia.com>2021-04-07 19:31:27 +0200
commit660c59ed6fb276336dbdd6958387342c79147930 (patch)
treeffb9f6d65e8d706602fcf16a3df949fcafbb8d9a /tests
parenttests: fix improper format strings in pim lib (diff)
downloadfrr-660c59ed6fb276336dbdd6958387342c79147930.tar.xz
frr-660c59ed6fb276336dbdd6958387342c79147930.zip
tests: fix use of undefined variable in pim lib
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/topotests/lib/pim.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/topotests/lib/pim.py b/tests/topotests/lib/pim.py
index 265449df2..61a5705a5 100644
--- a/tests/topotests/lib/pim.py
+++ b/tests/topotests/lib/pim.py
@@ -2377,8 +2377,7 @@ def verify_ip_pim_upstream_rpf(tgen, topo, dut, interface, group_addresses, rp=N
if rp is None:
rp_details = find_rp_details(tgen, topo)
else:
- rp_details = {dut: ip}
- rp_details[dut] = rp
+ rp_details = {dut: rp}
if dut in rp_details:
pim_nh_intf_ip = topo["routers"][dut]["links"]["lo"]["ipv4"].split(