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

Class InterfaceAddressChangeEvent


An event indicating that an interface address change event occurred in a network element.

Instance Methods
 
__init__(self, element, event_handle, interf, oldaddr, newaddr, old_prefix_len, new_prefix_len)
Constructor of InterfaceAddressChangeEvent class.
 
do_event(self, network_element)
This method specifies what action to do when an 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

Inherited from core.event.AsyncMsg.AsyncMsg: OnepAsyncMsgType

Instance Variables
NetworkInterface interface = None
The network interface whose address changed.
str old_addr = None
The old address.
str new_addr = None
The new address.

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, event_handle, interf, oldaddr, newaddr, old_prefix_len, new_prefix_len)
(Constructor)

 

Constructor of InterfaceAddressChangeEvent class.

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

 

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

Parameters:
  • element (NetworkElement) - The Network Element at which the event is generated.
Overrides: core.event.AsyncMsg.AsyncMsg.do_event