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

Class InterfaceAddressChangeListener


The listener interface for receiving interface address change events. The class that is interested in processing an interface address change event should implement this interface. Listener will be notified when the interface address is changed.

Changing the interface address involves two events.

The first event is where the existing IP address is released.

The second is when a new address is applied to the interface.

These two events will happen in quick succession if the user has changed the address to a new address; otherwise, individual events may occur apart from each other as and when the user removes the address and assigns the new address, respectively.

Instance Methods
 
handle_event(self, event, client_data)
Invoked when an event is received from the network element.

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 event is received from the network element.

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