300-435 · Question #47
Refer to the exhibit. Which NETCONF statement type is represented by +--rw address* [ip]?
The correct answer is A. list. The NETCONF statement +--rw address [ip] represents a list because it indicates a node that can have multiple instances (denoted by `) and is uniquely identified by a key ([ip]`).
Question
Options
- Alist
- Bleaf-list
- CContainer
- DSubmodule
How the community answered
(34 responses)- A88% (30)
- B3% (1)
- C3% (1)
- D6% (2)
Why each option
The NETCONF statement `+--rw address* [ip]` represents a `list` because it indicates a node that can have multiple instances (denoted by `*`) and is uniquely identified by a key (`[ip]`).
The `*` symbol in `+--rw address* [ip]` signifies that there can be zero or more instances of the `address` node, and `[ip]` indicates that each instance is uniquely identified by the `ip` key, which are defining characteristics of a YANG `list` statement.
A `leaf-list` defines a sequence of simple data nodes (leaves) of the same type, but it does not have keys or complex child nodes like `address* [ip]` implies.
A `container` groups related data nodes but does not allow multiple instances of itself or define a key for identification, unlike a `list`.
A `submodule` is a YANG module organization construct, used to split a large YANG module, and is not a type of data node represented within a data tree structure.
Concept tested: YANG data model list definition
Source: https://www.rfc-editor.org/rfc/rfc7950#section-7.8
Topics
Community Discussion
No community discussion yet for this question.