Refer to the exhibits. An engineer creates a Python scripts using ncclient to display interface information. The code must be completed so that it can be tested. Which expression completes the highlighted section in the format call?
Voting B based on the script by Hank Preston, who participated in making the exam.
https://github.com/CiscoDevNet/BRKDEV-1368/blob/master/netconf/example2.py
The answer is B. If you look carefully at the result, the format is interfaces xmlns. If you use intf_info then the result should be with the format interfaces-state xmlns. I think both should work in getting the name of the interfaces but it is looking for the name of the interface under the interfaces yang container.
the m.get netconf command will get the configs not the operational state
the netconf_filter = open('filter-ietf-interfaces.xml').read()
netconf_reply = m.get(netconf_filter)
The answer is intf_info (A) .
I tired the code and both intf_info (intf_details["interfaces-state"]["interface"]) & intf_config (intf_details["interfaces"]["interface"]) work and give the interface name
The filter has "interfaces" and "interfaces-state" which means "m.get(netconf_filter)" will get both the config and state
The question says "display interface information" (int_info) not configuration.
I think it's A because the <name> tag exists under <interface-state> then <interface> tags
upvoted 2 times
...
This section is not available anymore. Please use the main Exam Page.300-435 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
1234567J
Highly Voted 2 years, 10 months ago[Removed]
Highly Voted 1 year, 4 months agodexilec82
Most Recent 2 months, 1 week agodexilec82
2 months, 1 week agocj_kuo
6 months, 2 weeks agoLyndongarcia09
1 year, 9 months agoTechBrain
2 years, 5 months agodooly
2 years, 5 months agolmh
2 years, 5 months agocooliocool
2 years, 9 months ago