Package onep :: Package interfaces :: Module InterfaceCreateDeleteListener :: Class InterfaceCreateDeleteListener
[frames] | no frames]

Class InterfaceCreateDeleteListener


The listener interface for receiving interface create/delete events. The class that is interested in processing an interface create/delete event should implement this interface.

Listener will be notified as and when an interface creation or deletion event is received.

The online insertion and removal (OIR) for physical ports are also notified as interface create and delete events on logical interfaces that have an associated physical interface. The application can glean this info from the type of the interface

Internal data structures allocated while creating an event are reused if the interface is deleted and created again. Hence, create event for interface is seen only the first time the interface gets created.

Delete event on the other hand is seen every time the interface is deleted.

Instance Methods
 
handle_event(self, event, client_data)
Invoked when an interface creation or deletion event is received.

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, client_data)

 

Invoked when an interface creation or deletion event is received.

The online insertion and removal (OIR) for physical ports are also notified as interface create and delete events on logical interfaces that have an associated physical interface. The application can glean this info from the type of the interface

Parameters:
  • event (InterfaceCreateDeleteEvent) - An event object which indicates that an event occurred.
  • client_data - The client_data is an object that was passed in when the application called an API to add/register the event listener. It is application's responsibility to cast the input client_data to appropriate class before using it.
Decorators:
  • @abstractmethod