Closed RP-11 closed 3 months ago
I think adding ^Power\s+via\s+\S+:
similar to what you have done is the way to address. You will need to create a new test case for this as well if you want to put in a PR to fix the issue.
Thx. I will try this out. It may take a bit until I can test it.
@RP-11 This should have been resolved by PR #919
Could you please test and report back so we know you're all set? Thank you!
ISSUE TYPE
TEMPLATE USING
SAMPLE COMMAND OUTPUT
SUMMARY
parser is braking on line "Power via MDI" and giving this error. textfsm.parser.TextFSMError: State Error raised. Rule Line: 55. Input Line: Power via MDI:
NOTE. I added another line above: ^(?:PoE|\s+Power)
And now it is not showing the error ^Power\s+via ^(?:PoE|\s+Power)
STEPS TO REPRODUCE
run it on any switch that has "Power via MDI" in the output
EXPECTED RESULTS
ACTUAL RESULTS
textfsm.parser.TextFSMError: State Error raised. Rule Line: 55. Input Line: Power via MDI: