ETExamTower
Q33Infrastructure and Automation

Refer to the exhibit. The Ansible playbook uses the `netconf_module` to configure an interface through a YANG model. As part of this workflow, which YANG models augment the interface?

Question exhibit
← → navigate · a answer
Community votes
A
43% (3)
B
29% (2)
D
29% (2)
C
0% (0)
Discussion · 15
25
I pick D
6
It's D. You're right. Please guys, take a look at what augmentation means: https://yumaworks.freshdesk.com/support/solutions/articles/1000260136-yang-constraints-explained
4
The answer B looks correct. https://tools.ietf.org/html/rfc8343 3.1 seems IANA-if-type can augment interface: augment "/if:interfaces/if:interface" and in http://www.netconfcentral.org/modules/ietf-ip, seems interface augment ietf-ip: augment /if:interfaces/if:interface so it is iana-if-type augment interface and interface augment ip, then the answer should be iana-if-type and ieft-interface Not sure whether this is correct or not though...
3
It's D. Augment is anything added through a leaf off standard. Ex: look at ietf-ip model and the first statement are an Augment interface with leaf IPV4 which means ietf-ip adds ipv4 leaf on interface list which is not standard on ietf-interfaces YANG model. Assumpting ietf-interfaces does not have any augment on its YANG model by elimination we can be sure D is correct! Source: https://www.ciscolive.com/global/on-demand-library.html?search=BRKDEV-1368#/
B 3
Selected Answer: B B is the right one: module iana-if-type { yang-version 1; namespace "urn:ietf:params:xml:ns:yang:iana-if-type"; prefix ianaift; import ietf-interfaces { prefix if; } organization "IANA"; contact " Internet Assigned Numbers Authority https://www.netconfcentral.org/modules/iana-if-type/2017-01-19
A 3
Selected Answer: A I would pick A because the ietf-interfaces augments the ietf-ip. This was clearly stated in this video: https://www.ciscolive.com/on-demand/on-demand-library.html?search=BRKDEV-1368&search=BRKDEV-1368#/video/1636411323819002rNiV at 35:45 .. so the ietf-interfaces is augmented by the ietf-ip to include the IP leaf that is missing in the ietf-ip module.
A 2
Selected Answer: A chatgpt: The iana-if-type is also there, and it's used to specify the interface type (like Ethernet, software loopback, etc.), but it is not really augmenting the interface configuration. Instead, it defines the interface type. The openconfig-interface model is not mentioned in the snippet, so it is not relevant to the provided XML configuration.
D 2
Selected Answer: D In YANG modeling, "augmenting" means extending an existing model (or data tree) by adding new elements (like config parameters or containers) without changing the original model. You have a base model, like ietf-interfaces, which defines a network interface (name, type, enabled, etc.). Then another model (e.g., ietf-ip) comes in and augments that base model to add IP configuration (like IPv4/IPv6 settings).
1
I'm not sure any of these are the answer. ietf-ip definitely includes the statements for augmenting other models however neither the iana-if-type nor interfaces includes the augment statement in the model. Can someone explain how they get the yang model for iana-if-type to augment the interfaces model?
1
I think the answer here is A. The RFC7277 says that IETF-IP augments IETF-Interfaces. RFC 7224 says that iana-if-type imports ietf interfaces instead of augmenting it. The only yang definition that supports the augmentation key word is the IETF-IP model. So the best fitting answer is A, I believe. https://datatracker.ietf.org/doc/html/rfc7277 which is the RFC for IETF-IP says the following: This document defines the YANG module "ietf-ip", which augments the "interface" and "interface-state" lists defined in the "ietf-interfaces" module [RFC7223] with IP-specific data nodes, and also adds IP-specific state data. https://datatracker.ietf.org/doc/html/rfc7224 states that iana-if-type imports ietf interfaces.
1
that article is a mess. It's hard to get anything out of it.
1
thnks for sharing this.
B 1
Selected Answer: B B ietf-interfaces - This module has a set of YANG definitions for managing network interfaces. iana-if-typ - This YANG module defines YANG identities for IANA-registered interface types. ietf-ip - This module has a set of YANG definitions for configuring IP implementations https://github.com/YangModels/yang/blob/main/vendor/cisco/xe/1681/iana-if-type.yang https://github.com/YangModels/yang/blob/main/vendor/cisco/xe/1681/ietf-interfaces.yang https://github.com/YangModels/yang/blob/main/vendor/cisco/xe/1681/ietf-ip.yang
D 1
Selected Answer: D the answer is D
1
should be A: This document describes the YANG module "ietf-ip", which augments the "interface" lists defined in the "ietf-interfaces" module [RFC8343] with IP-specific data nodes. https://datatracker.ietf.org/doc/rfc8344/