The YANG model provided in the exhibit defines the structure for interface information, including fields for name, admin-status, if-index, and statistics. The correct XML snippet must match this structure and use the appropriate namespaces and field names as defined in the YANG model.
Namespace: The XML must include the namespace urn:ietf:params:xml:ns:yang:ietf-interfaces and the prefix if.
Interface Information: The XML must include elements for name, admin-status, if-index, and statistics as defined in the YANG model.
Field Names and Values: The field names must match the YANG model (admin-status, if-index, in-octets, in-unicast-pkts).
Option D is the correct XML snippet because it accurately conforms to the YANG model. It includes the required elements and correctly uses the namespace and field names:
GigabitEthernet1
<admin-status>1</admin-status>
1
408164820
728061
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit