300-435 · Question #25
Refer to the exhibit. Which NETCONF protocol operation is used to interact with the YANG model? module: cisco-ios-xe-vlan-oper +--ro vlans +--ro vlan [id] +--ro id uint16 +--ro name? string +--ro…
The correct answer is A. <edit-config>. The YANG model snippet includes both read-only (ro) and read-write elements, signifying that configuration changes are possible, which are performed using the NETCONF <edit-config> operation.
Question
Options
- A<edit-config>
- B<get>
- C<get-config>
- D<copy-config>
How the community answered
(39 responses)- A87% (34)
- B8% (3)
- C3% (1)
- D3% (1)
Why each option
The YANG model snippet includes both read-only (`ro`) and read-write elements, signifying that configuration changes are possible, which are performed using the NETCONF `<edit-config>` operation.
The YANG model defines `vlan-interfaces` as a configurable list (indicated by `*` and lack of `ro`), meaning it's part of the device's configuration data that can be modified. The NETCONF `<edit-config>` operation is specifically used to create, modify, or delete configuration data on a target device based on a YANG model.
The NETCONF `<get>` operation is used to retrieve both configuration and state data from a device, but it does not modify the configuration.
The NETCONF `<get-config>` operation is used to retrieve only configuration data from a device, but it does not modify the configuration.
The NETCONF `<copy-config>` operation is used to copy an entire configuration datastore (e.g., running to startup) on a device, but it does not directly modify individual configuration elements within a YANG model.
Concept tested: NETCONF operations and YANG model types
Source: https://www.rfc-editor.org/rfc/rfc6241#section-7.2
Topics
Community Discussion
No community discussion yet for this question.