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

Class CLIListener


A listener for receiving CLI events.

The class that is interested in processing a CLI event should implement this interface.

Instance Methods
 
handle_event(self, event, clientData)
Invoked when an async CLI event is received from the network element
 
handle_sync_event(self, event, clientData)
Invoked when a sync CLI event is received from the network element
 
get_sync_reply(self)

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

Properties

Inherited from object: __class__

Method Details

handle_event(self, event, clientData)

 

Invoked when an async CLI event is received from the network element

Parameters:
  • event - An event object which indicates that an event occurred in a network element.
  • clientData - The clientData is an object that was passed in when application called an API to add/register the event listener. The application is responsible for casting the input clientData to the appropriate class before using it.

handle_sync_event(self, event, clientData)

 

Invoked when a sync CLI event is received from the network element

Parameters:
  • event - An event object which indicates that an event occurred in a network element.
  • clientData - The clientData is an object that was passed in when application called an API to add/register the event listener. The application is responsible for casting the input clientData to the appropriate class before using it.