diff --git a/internal-lab-setup-assets/tester/lab-tester/lab-tester.py b/internal-lab-setup-assets/tester/lab-tester/lab-tester.py index ab46444..ab666ad 100644 --- a/internal-lab-setup-assets/tester/lab-tester/lab-tester.py +++ b/internal-lab-setup-assets/tester/lab-tester/lab-tester.py @@ -10,7 +10,7 @@ DEVICE_TYPE = "cisco_xr" # Re-used constants for testing -CMD_SHOW_DESCRIPTION = f"show run int {TEST_INTERFACE} | i description" +CMD_SHOW_DESCRIPTION = f"show run {TEST_INTERFACE} | i description" TEST_DESCRIPTION = "Management Interface" success = set() @@ -37,7 +37,7 @@ def test_configure_description(connection): [TEST_INTERFACE, f"description {TEST_DESCRIPTION}", "commit"] ) new_desc = ( - connection.send_command(CMD_SHOW_DESCRIPTION).splitlines()[-1].strip() + connection.send_command(CMD_SHOW_DESCRIPTION).splitlines()[2].strip() ) # skip newline and timestamp # Verify @@ -49,7 +49,9 @@ def test_configure_description(connection): ) failure.add(connection.host) else: - connection.send_config_set(TEST_INTERFACE, "no description", "commit") # revert + connection.send_config_set( + [TEST_INTERFACE, "no description", "commit"] + ) # revert success.add(connection.host)