300-420 · Question #325
When differentiating between IETF, OpenConfig, and Cisco native YANG models, how does the use of containers differ?
The correct answer is A. IETF and Cisco native models use one container for operational data and another container for. IETF and Cisco native YANG models conceptually separate operational and configuration data, often through attributes or distinct data nodes, which differs from OpenConfig's explicit config and state child containers.
Question
When differentiating between IETF, OpenConfig, and Cisco native YANG models, how does the use of containers differ?
Options
- AIETF and Cisco native models use one container for operational data and another container for
- BOpenConfig uses one container for operational data and another container for configuration data,
- CCisco native models use one container for operational data and another container for
- DIETF and Cisco native models use a single container for operational data and configuration data,
How the community answered
(37 responses)- A92% (34)
- C5% (2)
- D3% (1)
Why each option
IETF and Cisco native YANG models conceptually separate operational and configuration data, often through attributes or distinct data nodes, which differs from OpenConfig's explicit `config` and `state` child containers.
IETF and Cisco native YANG models differentiate between configuration and operational data by utilizing mechanisms such as the `config` attribute (true for config, false for operational) on individual data nodes, or by defining them within different modules or logical groupings, effectively creating separate conceptual 'containers'. This contrasts with OpenConfig's specific pattern of consistently using explicit `config` and `state` sibling containers under a common parent node for a given feature.
While OpenConfig models are indeed characterized by their strict use of `config` and `state` containers, where `state` often mirrors `config` and includes operational data, this statement alone doesn't explain how it *differs* from IETF and Cisco native models, which also separate data types but through different structural approaches.
This statement is incomplete, but generally, Cisco native models, similar to IETF, tend to use `config` attributes or separate data nodes rather than the explicit `config` and `state` sibling container structure of OpenConfig.
IETF and Cisco native models generally differentiate between configuration and operational data, employing attributes or distinct data definitions, rather than combining them into a single, undifferentiated container.
Concept tested: YANG model data separation- IETF, OpenConfig, Cisco
Source: https://www.cisco.com/c/en/us/td/docs/iosxr/yang/70x/b-yang-prog-guide-70x-book/b-yang-prog-guide-70x-book_chapter_010.html
Topics
Community Discussion
No community discussion yet for this question.