Switch Interface Naming
The switch supports a number of interface types managed using the ietf-interfaces YANG model.
Each interface is identified by a name depending on the interface type.
-
Port Interfaces
-
Physical Ethernet ports, always present (system-controlled).
-
The name is derived from the port number.
-
The first port interface is named '1'.
-
-
Aggregation Interfaces
-
Aggregated port interfaces, always present (system-controlled).
-
The name is derived from the group number.
-
The first aggregation interface is named 'AGGR1'.
-
-
L3 Interfaces (IP management or routing)
-
Management interfaces, configured by the user (user-controlled).
-
The name is derived from the VLAN ID of the interface.
-
The L3 interface based on VLAN 123 is named 'L3V123'.
-
The following messages show the interface types retrieved from a switch with 4 Ethernet ports and an L3 interface setup on VLAN 1.
FETCH request message:
- "/ietf-interfaces:interfaces/interface[name='1']/type"
- "/ietf-interfaces:interfaces/interface[name='2']/type"
- "/ietf-interfaces:interfaces/interface[name='3']/type"
- "/ietf-interfaces:interfaces/interface[name='4']/type"
- "/ietf-interfaces:interfaces/interface[name='AGGR1']/type"
- "/ietf-interfaces:interfaces/interface[name='AGGR2']/type"
- "/ietf-interfaces:interfaces/interface[name='L3V1']/type"
FETCH response message:
- ? "/ietf-interfaces:interfaces/interface/type"
: iana-if-type:ethernetCsmacd
- ? "/ietf-interfaces:interfaces/interface/type"
: iana-if-type:ethernetCsmacd
- ? "/ietf-interfaces:interfaces/interface/type"
: iana-if-type:ethernetCsmacd
- ? "/ietf-interfaces:interfaces/interface/type"
: iana-if-type:ethernetCsmacd
- ? "/ietf-interfaces:interfaces/interface/type"
: iana-if-type:ieee8023adLag
- ? "/ietf-interfaces:interfaces/interface/type"
: iana-if-type:ieee8023adLag
- ? "/ietf-interfaces:interfaces/interface/type"
: iana-if-type:l3ipvlan