diff options
Diffstat (limited to 'tests/topotests/lib/pim.py')
| -rw-r--r-- | tests/topotests/lib/pim.py | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/tests/topotests/lib/pim.py b/tests/topotests/lib/pim.py index 7a57af7dbf..84e641733a 100644 --- a/tests/topotests/lib/pim.py +++ b/tests/topotests/lib/pim.py @@ -1136,16 +1136,18 @@ def verify_upstream_iif( if group_addr_json[src_address]["joinState"] != "Joined": errormsg = ( "[DUT %s]: Verifying iif " - "(Inbound Interface) for (%s,%s) and" - " joinState :%s [FAILED]!! " - " Expected: %s, Found: %s" + "(Inbound Interface) and joinState " + "for (%s, %s), Expected iif: %s, " + "Found iif : %s, and Expected " + "joinState :%s , Found joinState: %s" % ( dut, src_address, grp_addr, - group_addr_json[src_address]["joinState"], in_interface, group_addr_json[src_address]["inboundInterface"], + joinState, + group_addr_json[src_address]["joinState"] ) ) return errormsg @@ -1153,16 +1155,18 @@ def verify_upstream_iif( elif group_addr_json[src_address]["joinState"] != joinState: errormsg = ( "[DUT %s]: Verifying iif " - "(Inbound Interface) for (%s,%s) and" - " joinState :%s [FAILED]!! " - " Expected: %s, Found: %s" + "(Inbound Interface) and joinState " + "for (%s, %s), Expected iif: %s, " + "Found iif : %s, and Expected " + "joinState :%s , Found joinState: %s" % ( dut, src_address, grp_addr, - group_addr_json[src_address]["joinState"], in_interface, group_addr_json[src_address]["inboundInterface"], + joinState, + group_addr_json[src_address]["joinState"] ) ) return errormsg @@ -1171,16 +1175,18 @@ def verify_upstream_iif( if group_addr_json[src_address]["regState"] != regState: errormsg = ( "[DUT %s]: Verifying iif " - "(Inbound Interface) for (%s,%s) and" - " rejstate :%s [FAILED]!! " - " Expected: %s, Found: %s" + "(Inbound Interface) and regState " + "for (%s, %s), Expected iif: %s, " + "Found iif : %s, and Expected " + "regState :%s , Found regState: %s" % ( dut, src_address, grp_addr, - group_addr_json[src_address]["regState"], in_interface, group_addr_json[src_address]["inboundInterface"], + regState, + group_addr_json[src_address]["regState"] ) ) return errormsg |
