Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.6.0.3
|
Interfaces are a basic unit of configuration abstraction in the NOS. The following types of interfaces are supported:
Every switch interface is represented internally by an interface number. The openapiIfFirstGet and openapiIfNextGet APIs can be used to get a list of valid interface numbers for a given interface type. These interface numbers are required as a parameter in several OpEN interface get/set APIs. Interfaces are created during the early stages of NOS initialization and remain the same across switch reboots. Interfaces of the PHYSICAL, CPU, LAG and Service Port types are always created during system initialization. Interfaces for LOGICAL_VLAN, LOOPBACK and TUNNEL types are created only when the corresponding features are configured. Interfaces are represented in the NOS CLI via a slot/port notation where each interface type has a corresponding slot number.