Package onep :: Package element :: Module CLIEvent :: Class CLIEvent
[frames] | no frames]

Class CLIEvent


An event that indicates that a CLI event occurred in a network element.

A CLI event occurs when input is entered on the network element console that matches a given regular expression pattern.

Instance Methods
 
__init__(self, element, eventHandle, tty, count, sync, msg)
Constructor - used internally
 
do_event(self, ne)
This method specifies what action to do when an event is processed.

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

Class Variables
  apiClient = None

Inherited from core.event.AsyncMsg.AsyncMsg: OnepAsyncMsgType

Instance Variables

Inherited from core.event.EventObject.EventObject: event_handle, event_type

Inherited from core.event.AsyncMsg.AsyncMsg: src_ne

Properties

Inherited from object: __class__

Method Details

__init__(self, element, eventHandle, tty, count, sync, msg)
(Constructor)

 

Constructor - used internally

Parameters:
  • eventHandle - A unique ID to identify which event listener should receive the event .
  • event_type - The type of the event.
Overrides: object.__init__

do_event(self, ne)

 

This method specifies what action to do when an event is processed.

For CLIEvent, the action is invoking the client's event listener.

Parameters:
  • ne - The source of the event. For CLIEvent, the source in an instance of NetworkElement.
Overrides: core.event.AsyncMsg.AsyncMsg.do_event