Package onep :: Package vty :: Module VtyService :: Class VtyService :: Class ParserState
[frames] | no frames]

Class ParserState


ParserState is used to determine what went wrong with a command block.

It includes the command lines, individual parser return codes, and error postions in the input.

Instance Methods
 
__init__(self, prompt, overallRC, results)
Constructor for parserState class

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, prompt, overallRC, results)
(Constructor)

 

Constructor for parserState class

Parameters:
  • prompt - The prompt of the parser at the time of command interpretation
  • overallRC - The overall return code of the parser for this command set
  • results - The list of parser results and errors line by line
Overrides: object.__init__