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

Class InterfaceStateEvent


An event that indicates that an interface changed its line or administrative state up/down.


See Also:
add_interface_state_listener, add_state_listener
Instance Methods
 
__init__(self, elem, event_handle, ni, event_type, state, link, lineProto)
Constructor of InterfaceStateEvent 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
The network interface instance on which this event occurred
InterfaceState interface_state
The current state of the interface conveyed by event: up or down.
  lineProto
The current state of the line protocol conveyed by event: up or down.
  link
The current state of the link conveyed by event: up or down.
InterfaceStateEventType state_event_type
The type of state change: line protocol or administrative status.

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, elem, event_handle, ni, event_type, state, link, lineProto)
(Constructor)

 

Constructor of InterfaceStateEvent 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.

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