YANG represents network configuration and operational state as a hierarchical data model. In Cisco model-driven programmability, YANG is used with NETCONF to model configuration and state data so that client applications can programmatically retrieve, edit, and manage device configuration. Cisco states that YANG is used with NETCONF for automated and programmable network operations, and that YANG primarily models the configuration and state data used by NETCONF operations.
The correct hierarchy is thetree and leaf-based structure. Cisco’s YANG model structure description defines it as a hierarchical framework that organizes data into a tree with top-level nodes and nested child nodes, and groups related data through containers, lists, and leaves. In this model, containers and lists create structure, while leaf nodes hold actual values such as interface names, VLAN IDs, descriptions, IP addresses, or policy parameters. Option B describes a relationship inside the hierarchy, but it is not the full YANG modeling hierarchy. Options A and C are not valid YANG/NETCONF structural models. Reference topics:Automation and AI — model-driven programmability, NETCONF, YANG data models, configuration/state data, and Cisco IOS XE programmability.
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