Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
sbyrnes committed Feb 2, 2025
1 parent b381de4 commit 397031f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal-lab-setup-assets/tester/lab-tester/lab-tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
Expand All @@ -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)


Expand Down

0 comments on commit 397031f

Please sign in to comment.