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

Class InterfaceStatus


Class which handles provides information about status of the interface

Instance Methods
 
__init__(self, link, lineproto, interface_name)
Constructor of InterfaceStatus class.
 
__str__(self)
Obtain string representation of the Interface Status object.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables
Enum InterfaceStateEventType = enum('ONEP_IF_STATE_EVENT_LINK', 'ON...
Enum indicating the type of Interface State Event.
Enum InterfaceState = enum(ONEP_IF_STATE_ADMIN_DOWN= 1, ONEP_IF_STA...
Represents the State of the interface.
Enum InterfaceVLANEventType = enum('ONEP_IF_VLAN_EVENT_ADD', 'ONEP_...
Enum indicating type of interface vlan change event.
Enum InterfaceVRFEventType = enum('ONEP_IF_VRF_EVENT_LINEPROTO', 'O...
Enumeration for interface VRF change event type.
Instance Variables
str interface_name = None
The name of the interface
InterfaceState link = 1
The link status of the interface.
InterfaceState lineproto = 1
The lineproto state of the interface.
Properties

Inherited from object: __class__

Method Details

__init__(self, link, lineproto, interface_name)
(Constructor)

 

Constructor of InterfaceStatus class.

Overrides: object.__init__

__str__(self)
(Informal representation operator)

 

Obtain string representation of the Interface Status object.

Overrides: object.__str__

Class Variable Details

InterfaceStateEventType

Enum indicating the type of Interface State Event.

ONEP_IF_STATE_EVENT_LINK: Link state event type

ONEP_IF_STATE_EVENT_LINEPROTO: Line proto state event type

ONEP_IF_STATE_EVENT_ANY: Any state event

Type:
Enum
Value:
enum('ONEP_IF_STATE_EVENT_LINK', 'ONEP_IF_STATE_EVENT_LINEPROTO', 'ONE\
P_IF_STATE_EVENT_ANY')

InterfaceState

Represents the State of the interface.

ONEP_IF_STATE_ADMIN_DOWN: Interface is administratively down

ONEP_IF_STATE_OPER_DOWN: Interface is administratively up, but it is operationally down

ONEP_IF_STATE_OPER_UP: Interface is operationally up

Type:
Enum
Value:
enum(ONEP_IF_STATE_ADMIN_DOWN= 1, ONEP_IF_STATE_OPER_DOWN= 2, ONEP_IF_\
STATE_OPER_UP= 3)

InterfaceVLANEventType

Enum indicating type of interface vlan change event.

ONEP_IF_VLAN_EVENT_ADD: VLAN event add

ONEP_IF_VLAN_EVENT_DELETE: VLAN event delete

ONEP_IF_VLAN_EVENT_ANY: Any VLAN event

Type:
Enum
Value:
enum('ONEP_IF_VLAN_EVENT_ADD', 'ONEP_IF_VLAN_EVENT_DELETE', 'ONEP_IF_V\
LAN_EVENT_ANY')

InterfaceVRFEventType

Enumeration for interface VRF change event type.

ONEP_IF_VRF_EVENT_LINEPROTO: Line proto VRF change event

ONEP_IF_VRF_EVENT_LINK: Link VRF change event

Type:
Enum
Value:
enum('ONEP_IF_VRF_EVENT_LINEPROTO', 'ONEP_IF_VRF_EVENT_LINK')