nerdexam
Cisco

350-901 · Question #18

Refer to the exhibit. The Ansible playbook is using the netconf_module to configure an interface using a YANG model. As part of this workflow, which YANG models augment the interface? name…

The correct answer is D. ietf-ip and iana-if-type. In the playbook, ietf-ip and iana-if-type are the YANG models that augment the base ietf-interfaces model for IP addressing and interface type.

Network Automation

Question

Refer to the exhibit. The Ansible playbook is using the netconf_module to configure an interface using a YANG model. As part of this workflow, which YANG models augment the interface?
  • name: Configure Interfaces cisco.ios.ios_interfaces: config:
  • host_info xml: <config>
<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"> <interface> <name>{{ item.interface_id }}</name> <description>{{ item.description }}</description> <type xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">ianaift:ethernetCsmacd</type> <enabled>true</enabled> <ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip"> <address> <ip>{{ item.ip_address }}</ip> <netmask>{{ item.subnet_mask }}</netmask> </address> </ipv4> </interface> </interfaces> </config>

Exhibit

350-901 question #18 exhibit

Options

  • Aietf-interfaces and ietf-ip
  • Biana-if-type and ietf-interfaces
  • Cietf-ip and openconfig-interface
  • Dietf-ip and iana-if-type

How the community answered

(54 responses)
  • A
    4% (2)
  • B
    9% (5)
  • C
    15% (8)
  • D
    72% (39)

Why each option

In the playbook, ietf-ip and iana-if-type are the YANG models that augment the base ietf-interfaces model for IP addressing and interface type.

Aietf-interfaces and ietf-ip

ietf-interfaces is the base model being augmented, not one of the augmenting models; listing it as an augmentor is incorrect.

Biana-if-type and ietf-interfaces

iana-if-type augments interface type but ietf-interfaces is the base container, not an augmenting model in this context.

Cietf-ip and openconfig-interface

openconfig-interface does not appear anywhere in the XML namespaces shown in the playbook exhibit.

Dietf-ip and iana-if-typeCorrect

The XML payload shows the base container using the ietf-interfaces namespace, with iana-if-type referenced via its namespace to define the interface type (ianaift:ethernetCsmacd) and ietf-ip referenced via its namespace to configure the IPv4 address block. Both ietf-ip and iana-if-type are standard YANG augmentation models that extend ietf-interfaces with IP configuration and standardized interface type definitions respectively.

Concept tested: YANG model augmentation with ietf-ip and iana-if-type

Source: https://datatracker.ietf.org/doc/html/rfc8343

Topics

#YANG#NETCONF#Network Automation#Data Models

Community Discussion

No community discussion yet for this question.

Full 350-901 Practice