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

Class InterfaceConfig


This class represents the configuration (software property) of the network interface.

The configuration might be changed during the life of the session. Hence, it is refreshed if the last accessed time has aged out.

Instance Methods
 
__str__(self)
Returns the configuration in string format.

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

Class Variables
Enum Encap = enum('ONEP_IF_ENCAP_NULL', 'ONEP_IF_ENCAP_ANY', 'ONEP_...
Enumeration of the logical interface types
Enum UnidirMode = enum('ONEP_IF_UNIDIR_MODE_OFF', 'ONEP_IF_UNIDIR_M...
Enumeration of the interface unidirectional mode attribute.
Enum SwitchportMode = enum('ONEP_IF_SWITCHPORT', 'ONEP_IF_SWITCHPOR...
Enumeration of the interface Switchport mode attribute.
Instance Variables
str description
The description of the interface.
str display_name
The name of the interface.
Encap encap
The interface encapsulation type.
bool islayer2
Indicates if this a Layer-2 Interface
str mac_address
The MAC address of the interface
int mtu
The MTU value of the interface
int rx_bandwidth
The interface receive bandwidth
int snmp_index
The interface Simple Network Management Protocol (SNMP) index
int tx_bandwidth
The interface transmit bandwidth
UnidirMode undir_mode
Gets the unidirectional mode,
Properties

Inherited from object: __class__

Method Details

__str__(self)
(Informal representation operator)

 

Returns the configuration in string format.

Overrides: object.__str__

Class Variable Details

Encap

Enumeration of the logical interface types

ONEP_IF_ENCAP_NULL: Null encapsulation

ONEP_IF_ENCAP_ANY: All encapsulation

ONEP_IF_ENCAP_UNKNOWN: Unknown encapsulation

ONEP_IF_ENCAP_ARPA: ARPA (Standard Ethernet version 2.0) encapsulation

ONEP_IF_ENCAP_LOOP: Loopback encapsulation

ONEP_IF_ENCAP_DOT1Q: 802.1q encapsulation

ONEP_IF_ENCAP_ATM: ATM encapsulation

ONEP_IF_ENCAP_SNAP: SNAP (IEEE 802.2) encapsulation

ONEP_IF_ENCAP_HDLC: HDLC encapsulation

ONEP_IF_ENCAP_PPP: PPP encapsulation

ONEP_IF_ENCAP_ETHER: Ethernet encapsulation

ONEP_IF_ENCAP_GRE: GRE Tunnel encapsulation

ONEP_IF_ENCAP_MPLS: MPLS Tunnel encapsulation

Type:
Enum
Value:
enum('ONEP_IF_ENCAP_NULL', 'ONEP_IF_ENCAP_ANY', 'ONEP_IF_ENCAP_UNKNOWN\
', 'ONEP_IF_ENCAP_ARPA', 'ONEP_IF_ENCAP_LOOP', 'ONEP_IF_ENCAP_DOT1Q', \
'ONEP_IF_ENCAP_ATM', 'ONEP_IF_ENCAP_SNAP', 'ONEP_IF_ENCAP_HDLC', 'ONEP\
_IF_ENCAP_PPP', 'ONEP_IF_ENCAP_ETHER', 'ONEP_IF_ENCAP_GRE', 'ONEP_IF_E\
NCAP_MPLS')

UnidirMode

Enumeration of the interface unidirectional mode attribute.

ONEP_IF_UNIDIR_MODE_OFF: Unidirectional mode is turned off

ONEP_IF_UNIDIR_MODE_SEND_ONLY: Unidirectional mode is enabled and send only

ONEP_IF_UNIDIR_MODE_RECV_ONLY: Unidirectional mode is enabled and receive only

ONEP_IF_UNIDIR_MODE_NOT_SUPPORTED: Unidirectional mode not supported on the system

Type:
Enum
Value:
enum('ONEP_IF_UNIDIR_MODE_OFF', 'ONEP_IF_UNIDIR_MODE_SEND_ONLY', 'ONEP\
_IF_UNIDIR_MODE_RECV_ONLY', 'ONEP_IF_UNIDIR_MODE_NOT_SUPPORTED')

SwitchportMode

Enumeration of the interface Switchport mode attribute.

ONEP_IF_SWITCHPORT: interface switchport

ONEP_IF_SWITCHPORT_MODE_ACCESS: switchport mode access

ONEP_IF_SWITCHPORT_MODE_DOT1Q_TUNNEL: switchport mode dot1q-tunnel

ONEP_IF_SWITCHPORT_MODE_TRUNK: switchport mode trunk

ONEP_IF_SWITCHPORT_MODE_NOT_SUPPORTED: switchport mode not supported

Type:
Enum
Value:
enum('ONEP_IF_SWITCHPORT', 'ONEP_IF_SWITCHPORT_MODE_ACCESS', 'ONEP_IF_\
SWITCHPORT_MODE_DOT1Q_TUNNEL', 'ONEP_IF_SWITCHPORT_MODE_TRUNK', 'ONEP_\
IF_SWITCHPORT_MODE_NOT_SUPPORTED')