shadowhawk38 / textfsm

Automatically exported from code.google.com/p/textfsm
Apache License 2.0
0 stars 0 forks source link

Transition to "End" state does not terminate processing of input lines #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Using the attached example files:
 textfsm.py exampletemplate exampleinput

What is the expected output?
FSM Table:
['IsOK', 'LineNo']
['OK', '1']
['OK', '2']

What do you see instead?
FSM Table:
['IsOK', 'LineNo']
['OK', '1']
['OK', '2']
['OK', '4']
['OK', '5']

What version of the product are you using? On what operating system?
textfsm 0.2.0, Ubuntu 10.04.4 LTS, x86_64, Python 2.6.5

TextFSMHowto mentions that "The End state is reserved and terminates processing
of input lines and does not execute the EOF state."
This doesn't seem to work. The exampletemplate file also contains my current
workaround, i.e. transition to a state "Foo" which has no rules, but while
faster it's not a real solution.

Original issue reported on code.google.com by is...@gmx.net on 25 Apr 2012 at 1:20

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by ha...@google.com on 4 Jun 2012 at 6:47

GoogleCodeExporter commented 8 years ago
Patch uploaded for review.
http://codereview.appspot.com/6308094/

Original comment by ha...@google.com on 19 Jun 2012 at 8:32

GoogleCodeExporter commented 8 years ago

Original comment by ha...@google.com on 19 Jun 2012 at 8:33