200-301 · Question #402
Refer to the exhibit. After running the code in the exhibit, which step reduces the amount of data that the NETCONF server returns to the NETCONF client, to only the interface's configuration?
The correct answer is B. Create an XML filter as a string and pass it to get_config() method as an argument.. Using the Pythonic approach with ncclient and its get_config() method, has a filter argument where you simply specify the filter type, in this case subtree, along with the XML RPC that you want to get a configuration rpc-reply.
Question
Refer to the exhibit. After running the code in the exhibit, which step reduces the amount of data that the NETCONF server returns to the NETCONF client, to only the interface's configuration?
Exhibits
Options
- AUse the Ixml library to parse the data returned by the NETCONF server for the interface's
- BCreate an XML filter as a string and pass it to get_config() method as an argument.
- CCreate a JSON filter as a string and pass it to the get_config() method as an argument.
- DUse the JSON library to parse the data returned by the NETCONF server for the interface's
How the community answered
(29 responses)- A10% (3)
- B83% (24)
- C3% (1)
- D3% (1)
Explanation
Using the Pythonic approach with ncclient and its get_config() method, has a filter argument where you simply specify the filter type, in this case subtree, along with the XML RPC that you want to get a configuration rpc-reply.
Topics
Community Discussion
No community discussion yet for this question.

