Skip to content

Commit

Permalink
BugFix: IOS show license - avoid trailing spaces (networktocode#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
migueloangelo authored and thomasblass committed Oct 25, 2020
1 parent 99eb7b9 commit 07fecf6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
3 changes: 1 addition & 2 deletions templates/cisco_ios_show_license.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Value LICENSE_PRIORITY (.*)

Start
^Index\s+\d+\s+Feature: -> Continue.Record
^Index\s+\d+\s+Feature:\s+${FEATURE}$$
^Index\s+\d+\s+Feature:\s+${FEATURE}\s*$$
^\s+Period\s+left:\s+${PERIOD_LEFT}$$
^\s+Period\s+Used:\s+${PERIOD_USED}$$
^\s+License\s+Type:\s+${LICENSE_TYPE}$$
Expand All @@ -17,4 +17,3 @@ Start
^\s+License\s+Priority:\s+${LICENSE_PRIORITY}$$
^\s*$$
^. -> Error

20 changes: 10 additions & 10 deletions tests/cisco_ios/show_license/cisco_ios_show_license.raw
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
Index 1 Feature: appxk9
Index 1 Feature: appxk9
Period left: Life time
License Type: Permanent
License State: Active, In Use
License Count: Non-Counted
License Priority: Medium
Index 2 Feature: uck9
Index 2 Feature: uck9
Period left: Not Activated
Period Used: 0 minute 0 second
License Type: EvalRightToUse
License State: Active, Not in Use, EULA not accepted
License Count: Non-Counted
License Priority: None
Index 3 Feature: securityk9
Index 3 Feature: securityk9
Period left: Life time
License Type: Permanent
License State: Active, In Use
License Count: Non-Counted
License Priority: Medium
Index 4 Feature: ipbasek9
Index 4 Feature: ipbasek9
Period left: Life time
License Type: Permanent
License State: Active, In Use
License Count: Non-Counted
License Priority: Medium
Index 5 Feature: FoundationSuiteK9
Index 5 Feature: FoundationSuiteK9
Period left: Not Activated
Period Used: 0 minute 0 second
License Type: EvalRightToUse
License State: Active, Not in Use, EULA not accepted
License Count: Non-Counted
License Priority: None
Index 6 Feature: AdvUCSuiteK9
Index 6 Feature: AdvUCSuiteK9
Period left: Not Activated
Period Used: 0 minute 0 second
License Type: EvalRightToUse
License State: Active, Not in Use, EULA not accepted
License Count: Non-Counted
License Priority: None
Index 7 Feature: cme-srst
Index 7 Feature: cme-srst
Period left: Not Activated
Period Used: 0 minute 0 second
License Type: EvalRightToUse
License State: Active, Not in Use, EULA not accepted
License Count: 0/0 (In-use/Violation)
License Priority: None
Index 8 Feature: hseck9
Index 8 Feature: hseck9
Period left: Life time
License Type: Permanent
License State: Active, In Use
License Count: Non-Counted
License Priority: Medium
Index 9 Feature: throughput
Index 9 Feature: throughput
Period left: Not Activated
Period Used: 0 minute 0 second
License Type: EvalRightToUse
License State: Active, Not in Use, EULA not accepted
License Count: Non-Counted
License Priority: None
Index 10 Feature: internal_service
Index 10 Feature: internal_service

0 comments on commit 07fecf6

Please sign in to comment.