Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix cisco ios show tacacs #1891

Merged
merged 13 commits into from
Nov 4, 2024

Conversation

mcn29
Copy link
Contributor

@mcn29 mcn29 commented Nov 4, 2024

In recent IOS XE versions (17.9.x ?), Cisco added 3 new lines in the output of the show tacacs command which are not recognised by the template :

             Server Status: Alive
Continous Authc fail count:          0
Continous Authz fail count:          0

The fix allows the template to recognise and skip those 3 new lines

missing new line in yml test file
@@ -24,6 +24,9 @@ Start
^\s+Failed\s+Connect\s+Attempts:\s+${FAILED_CONNECTIONS}\s*$$
^\s+Total\s+Packets\s+Sent:\s+${PACKETS_SENT}\s*$$
^\s+Total\s+Packets\s+Recv:\s+${PACKET_RECEIVED}\s*$$
^\s+Server\s+Status:.+?\s*$$
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
^\s+Server\s+Status:.+?\s*$$
^\s+Server\s+Status:\s+\S+\s*$$

From what we have seen at this point there's a space \s+ followed by a word \S+.

…count.raw

Co-authored-by: Michael Bear <38406045+mjbear@users.noreply.github.com>
…count.raw

Co-authored-by: Michael Bear <38406045+mjbear@users.noreply.github.com>
@jmcgill298 jmcgill298 merged commit c18104e into networktocode:master Nov 4, 2024
14 checks passed
@mcn29 mcn29 deleted the fix_template_ios_show_tacacs branch November 4, 2024 21:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants