Package onep :: Package vty :: Module VtyData :: Class VtyData
[frames] | no frames]

Class VtyData


The Vty data information returned by the Network Element when a command interpretation has completed, or the state of a Vty has changed.

Instance Methods
 
__init__(self, element, execHandle, state, msgType, data)
Constructor for VtyData class.
 
do_event(self, source)
This method specifies what action to do when a event is processed in the event queue.

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

Class Variables
  OnepVtyMsgType = enum('ONEP_VTY_MSG_DATA', 'ONEP_VTY_MSG_STATE...

Inherited from core.event.AsyncMsg.AsyncMsg: OnepAsyncMsgType

Instance Variables

Inherited from core.event.AsyncMsg.AsyncMsg: src_ne

Properties

Inherited from object: __class__

Method Details

__init__(self, element, execHandle, state, msgType, data)
(Constructor)

 

Constructor for VtyData class.

Keyword argument: element -- The source network element. exec_handle -- Handle to Vty returned by Abstraction Layer state -- Current state of the Vty. msgType -- Type of message - data, state change, or error data -- data or error string

Overrides: object.__init__

do_event(self, source)

 

This method specifies what action to do when a event is processed in the 
event queue. For Vty Event, the action is invoking client's
event listener.

Keyword argument:
source -- The source of the event. For Vty Event, the source 
        in an instance of NetworkElement.  

Overrides: core.event.AsyncMsg.AsyncMsg.do_event

Class Variable Details

OnepVtyMsgType

Value:
enum('ONEP_VTY_MSG_DATA', 'ONEP_VTY_MSG_STATE', 'ONE_VTY_MSG_ERROR')