Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

cisco_ios_show_license - avoid trailing white spaces #565

Merged
merged 1 commit into from
Jan 2, 2020
Merged

cisco_ios_show_license - avoid trailing white spaces #565

merged 1 commit into from
Jan 2, 2020

Conversation

migueloangelo
Copy link
Contributor

ISSUE TYPE
  • New Template Pull Request
  • Bugfix Pull Request [X]
  • Additional Testing
  • Docs Pull Request
COMPONENT

Template: cisco_ios_show_license.textfsm
OS: Cisco IOS
Command: show license

SUMMARY

Some Cisco IOS (for example, Cisco 2900 version 15.5(3)M1) adds several final spaces to the output in the feature field of the show license command. Without the \s* at the end of the regex, the feature line does not match and the parser ends with error.

Example of output (quotes added by me):

"Index 1 Feature: ipbasek9                       "  <-- blank spaces
"	Period left: Life time"
"	License Type: Permanent"
"	License State: Active, In Use"
"	License Count: Non-Counted"
"	License Priority: Medium"
"Index 2 Feature: securityk9                     "  <-- blank spaces
"	Period left: Life time"
        ......

@jmcgill298
Copy link
Contributor

Thanks @migueloangelo

@jmcgill298 jmcgill298 merged commit bcba5cf into networktocode:master Jan 2, 2020
thomasblass pushed a commit to thomasblass/ntc-templates that referenced this pull request Oct 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants