What is the result of running the Python NETCONF script?
A.
It prints the XML output of show running interface GigabitEthernet 1 on the device with IP address 192.168.1.10.
B.
It configures the IP address 192.168.1.10 on the GigabitEthernet 1 interface and prints the new XML configuration.
C.
It opens interface configuration mode on the router and prompts for further XML commands from the user.
D.
It prints the XML output of show running on the device with IP address 192.168.1.0.
The Answer Is:
A
This question includes an explanation.
Explanation:
The script uses a NETCONF filter that targets the native Cisco IOS XE model and specifically filters the running configuration under interface -> GigabitEthernet -> name 1. The command shown in the script is m.get_config('running', interface_filter), followed by print(result). get_config is a read operation; it retrieves configuration data from the selected datastore, in this case the running datastore. It does not modify the device. Therefore, the result is printed XML output corresponding to the running configuration of GigabitEthernet 1 on the connected device. Option B is wrong because the script does not call edit_config, does not submit a configuration payload, and does not configure an IP address. Option C is wrong because NETCONF does not open an interactive CLI configuration mode. Option D is too broad and uses the wrong IP/network wording; the filter narrows the request to GigabitEthernet 1 rather than retrieving the full running configuration. This is a model-driven programmability question. References/topics: ENCOR Automation, NETCONF, YANG, ncclient, get_config, XML filters, Cisco IOS XE native model.
350-401 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 65% Discount on All Products,
Use Coupon: "ac4s65"