The correct ncclient method used to collect the running configuration of a Cisco IOS XE device that uses NETCONF is config=m.get_config(source='running'). This method retrieves the specified configuration (in this case, ‘running’) from the device using NETCONF. References: Automating Cisco Enterprise Solutions Official Cert Guide
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit