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

Class InterfaceCreateDeleteEvent


An event which indicates that an an interface creation or deletion event is received.

Instance Methods
 
__init__(self, element, eventHandle, intf, created, oir)
Constructor of InterfaceCreateDeleteEvent class.
 
do_event(self, network_element)
This method specifies what action to do when a 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 from which the event came from.
bool is_oir = False
Specifies the create/delete event was an online insertion and removal (OIR) create/delete event or a regular create/delete.
bool is_created = False
Checks to determine if the interface was added or deleted.

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, intf, created, oir)
(Constructor)

 

Constructor of InterfaceCreateDeleteEvent 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 a event is processed in the event queue. For InterfaceCreateDeleteEvent, the action is invoking the client's event listener.

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