IETF YANG Interface Model: ietf-interfaces vs OpenConfig and Native Modules

300-435 By islever Editorial Last updated

Short answer

A Ietf-interfaces is the IETF standards-track YANG module (RFC 8343) that defines the interfaces data tree, while openconfig-interfaces is OpenConfig, Cisco-IOS-XE-interfaces is native, and iana-if-type is only the type registry.

Question

What is the IETF YANG model for interfaces?
  1. ietf-interfaces Correct Answer
  2. openconfig-interfaces
  3. Cisco-IOS-XE-interfaces
  4. iana-if-type

Key Takeaways

The IETF standard YANG data model for network interfaces is ietf-interfaces, defined in RFC 8343 with the interfaces container and a type leaf that references iana-if-type identities. Among the listed options, ietf-interfaces is the only IETF-produced interface model; openconfig-interfaces comes from the OpenConfig operator group, Cisco-IOS-XE-interfaces is a native vendor module, and iana-if-type supplies interface-type identities rather than the interface data tree.

Expert Analysis

Because the interface data model must belong to the IETF standards stream rather than to an operator consortium or a Cisco native namespace, the IETF YANG model for interfaces is ietf-interfaces, not openconfig-interfaces, Cisco-IOS-XE-interfaces, or iana-if-type.

RFC 8343 defines ietf-interfaces as the IETF-standard interface data model

The IETF's NETMOD working group produced the interfaces data model as a standards-track RFC, and RFC 8343 assigns it the module name ietf-interfaces, the prefix if, and the namespace urn:ietf:params:xml:ns:yang:ietf-interfaces. Its top-level interfaces container holds a list of interface entries keyed by name; each entry carries configuration and state for type, enabled, admin-status, oper-status, last-change, statistics, and higher-layer relationships. That structure is the generic, platform-independent contract that IETF-conformant devices expose alongside their native models. The module deliberately abstracts vendor hardware: it does not enumerate Cisco-specific interface naming conventions or proprietary counters, and its type leaf is an identityref whose values come from the separate IANA interface-type registry. This is why the model can be implemented on IOS XE, Junos, or any other stack without changing the data tree a client programs against. The other three options are YANG modules, but their ownership differs: openconfig-interfaces is published under the OpenConfig namespace, Cisco-IOS-XE-interfaces is a Cisco native module, and iana-if-type is an IANA-maintained type module. Only ietf-interfaces carries IETF consensus as the interface data model itself.

An IETF-standard interface model excludes openconfig-interfaces and Cisco-IOS-XE-interfaces

The decisive qualifier is not standardized in the loose sense of publicly documented, but IETF ownership of the interface data model. openconfig-interfaces is genuinely vendor-neutral and widely implemented, yet its namespace belongs to the OpenConfig operator group, not to the IETF; it is a public model with multi-vendor backing, not an RFC. Cisco-IOS-XE-interfaces is the opposite case: it is an IETF-syntax YANG module whose content is defined by Cisco for IOS XE, exposing native constructs and counters that the IETF tree does not. A device may advertise all three simultaneously in its NETCONF or RESTCONF capabilities, so a client that asks for the interface model without qualifying the namespace can retrieve any of them. The selection must therefore be made by publisher and module name, not by whether the option looks generic. ietf-interfaces is the only listed module that is both an interface data tree and an IETF product; iana-if-type also has IETF and IANA lineage but supplies interface-type identities, not the interface list. That leaves ietf-interfaces as the sole option satisfying the IETF interface-model requirement.

Interface data model versus interface type registry separates ietf-interfaces from iana-if-type

The most plausible distractor is iana-if-type because it is an IANA-maintained YANG module with an RFC and because ietf-interfaces imports it. The boundary is functional: iana-if-type defines identities such as iana-if-type:ethernetCsmacd, iana-if-type:softwareLoopback, and iana-if-type:ieee8023adLag, which populate the type leaf of an interface entry. It has no interfaces container, no interface list, no administrative or operational state, and no statistics. Importing a type registry into a data model is not the same as being the data model; a client cannot retrieve an interface inventory from iana-if-type alone. Similarly, OpenConfig is often treated as a synonym for open standard, but OpenConfig is a consortium that publishes models under its own namespace, while the IETF publishes RFCs through its consensus process. Cisco-IOS-XE-interfaces is not a candidate once the IETF denominator applies, even though its name contains interfaces and its syntax is YANG. When a module name matches the target concept but its role is a supporting type or a vendor extension, the correct selection follows the role, not the resemblance.

Module namespace selection at capability exchange is where ietf-interfaces takes effect

The choice becomes operational at the moment a NETCONF or RESTCONF session learns the device's YANG library and the client qualifies a request with a module name. A NETCONF <hello> or a RESTCONF /restconf/data/ietf-interfaces:interfaces/interface path selects the standard tree by its namespace; the same device may also answer /restconf/data/Cisco-IOS-XE-interfaces:interfaces/interface or an OpenConfig path, and the payload shapes differ. In YANG Suite or pyang, the module set shows ietf-interfaces importing iana-if-type for the type leaf, which is exactly why the registry appears in the dependency tree without becoming the target model. During capability exchange, ietf-interfaces is advertised with its revision and namespace, and a client that uses that name gets the IETF container, not the Cisco native one. The selection does not happen at the interface-name level or the physical port level; it happens one layer earlier, when the module identifier determines which schema the request is validated against. That is the point where ietf-interfaces, rather than iana-if-type, does the work.

Official Reference

These links open the official vendor documentation in a new tab.

Exam Strategy

Map each YANG module name to its publishing body before comparing features: ietf- modules come from IETF RFCs, openconfig- from the OpenConfig consortium, and Cisco-IOS-XE-* from Cisco native modeling. Then check the module's role in the schema: a type registry such as iana-if-type supplies identity values for a leaf but does not provide the container a client retrieves. In YANG Suite or pyang, inspect the namespace and imports to confirm which module owns the data tree. This two-step check prevents choosing an open or standards-adjacent module that is not actually the IETF model requested.

Practice All 300-435 Questions

Access 150 questions with complete answers and detailed explanations.

View Full 300-435 Practice Test →

← Back to 300-435 Study Guide