350-401 · Question #1057
Refer to the exhibit. The NETCONF object is sent to a Cisco IOS XE switch. What is the purpose of the object?
The correct answer is A. Discover the IP address of interface GigabitEthernet1. The NETCONF object is designed to query the device for the current configuration of interface GigabitEthernet1, specifically focusing on retrieving its assigned IP address.
Question
Exhibits
Options
- ADiscover the IP address of interface GigabitEthernet1
- BRemove the IP address from interface GigabitEthernet1
- CSet the description of interface GigabitEthernet1 to "1"
- DView the configuration of all GigabitEthernet interfaces
How the community answered
(25 responses)- A88% (22)
- B8% (2)
- C4% (1)
Why each option
The NETCONF object is designed to query the device for the current configuration of interface GigabitEthernet1, specifically focusing on retrieving its assigned IP address.
A NETCONF `<get>` or `<get-config>` operation with a specific filter targeting the `ipv4` configuration details for `interface GigabitEthernet1` is used to retrieve or 'discover' the IP address assigned to that interface. This is a standard method to query specific interface attributes using NETCONF.
Removing an IP address would require a NETCONF `<edit-config>` operation with a `delete` attribute specified for the IP address configuration of the interface.
Setting an interface description would require a NETCONF `<edit-config>` operation with a `merge` or `replace` attribute, including the `description` element with the new value.
Viewing the configuration of all GigabitEthernet interfaces would typically involve a broader filter within a `<get-config>` operation, or a request for the entire `ietf-interfaces` list, rather than a specific IP address query for a single interface.
Concept tested: NETCONF <get> operation for interface IP
Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/166/b_166_programmability_cg/netconf_yang.html
Topics
Community Discussion
No community discussion yet for this question.

