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

Class InterfaceProperty


This class represents hardware property of the network interface.

The property is associated with physical hardware; for example, a hardware slot or port location of the interface. It is retrieved only once from the NetworkElement, because it is not changed during the life of the session.

Instance Methods
 
__init__(self, slot, port, speed=None, short_name=None, subif_id=None)
Constructor of InterfaceProperty class.

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

Instance Variables
int port = -1
The physical Port location of the logical interface if applicable.
str short_name
The interface's short name
int speed
The interface speed
int subif_id
If the interface is a logical sub-interface it will have this ID
Properties

Inherited from object: __class__

Method Details

__init__(self, slot, port, speed=None, short_name=None, subif_id=None)
(Constructor)

 

Constructor of InterfaceProperty class.

Parameters:
  • slot (int) - The physical slot location of the logical interface if applicable. For virtual interfaces the slot will be set to -1
  • port (int) - The physical Port location of the logical interface if applicable.
  • speed (int) - The interface speed
  • short_name (str) - The interface's short name
  • subif_id (int) - If the interface is a logical sub-interface it will have this ID
Overrides: object.__init__

Instance Variable Details

port

The physical Port location of the logical interface if applicable. This API is currently deprecated as the underlying platform is not correctly returning the port info that matches with the port in the interface name
Type:
int
Value:
-1