diff options
| author | Rafael Zalamena <rzalamena@users.noreply.github.com> | 2024-11-21 16:10:42 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-21 16:10:42 -0300 |
| commit | a3e04a86d23ad96698a37c3fa1abcf4f59d349d7 (patch) | |
| tree | d2e14be711ead9c2cd22cd19b07c067b502b262b /tests/topotests/lib/pim.py | |
| parent | 0af5c2a6eb7ade86fe6fefab00d77da1cefb7ed2 (diff) | |
| parent | 13c0722b5ccc53b00d07388f7a2bddd44f05b17b (diff) | |
Merge pull request #17340 from nabahr/mapping-agent
PIMD: Implement AutoRP mapping-agent
Diffstat (limited to 'tests/topotests/lib/pim.py')
| -rw-r--r-- | tests/topotests/lib/pim.py | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/tests/topotests/lib/pim.py b/tests/topotests/lib/pim.py index 369a794ebc..349b82aab4 100644 --- a/tests/topotests/lib/pim.py +++ b/tests/topotests/lib/pim.py @@ -1720,26 +1720,26 @@ def verify_pim_rp_info( ) return errormsg - if not iamRP: - if rp_json["iAmRP"] == False: - logger.info( - "[DUT %s]: Verifying group " - "and iAmNotRP [PASSED]!!" - " Found Expected: (%s, %s:%s)", - dut, - grp_addr, - "iAmRP", - rp_json["iAmRP"], - ) - else: - errormsg = ( - "[DUT %s]: Verifying group" - "%s and iAmRP [FAILED]!! " - "Expected: (iAmRP: %s)," - " Found: (iAmRP: %s)" - % (dut, grp_addr, "false", rp_json["iAmRP"]) - ) - return errormsg + if not iamRP: + if rp_json["iAmRP"] == False: + logger.info( + "[DUT %s]: Verifying group " + "and iAmNotRP [PASSED]!!" + " Found Expected: (%s, %s:%s)", + dut, + grp_addr, + "iAmRP", + rp_json["iAmRP"], + ) + else: + errormsg = ( + "[DUT %s]: Verifying group" + "%s and iAmRP [FAILED]!! " + "Expected: (iAmRP: %s)," + " Found: (iAmRP: %s)" + % (dut, grp_addr, "false", rp_json["iAmRP"]) + ) + return errormsg logger.debug("Exiting lib API: {}".format(sys._getframe().f_code.co_name)) return True |
