ktbyers / netmiko

Multi-vendor library to simplify Paramiko SSH connections to network devices
MIT License
3.49k stars 1.26k forks source link

Update cisco_xr.py exit_config_mode function #3420

Closed rajjaisur closed 1 month ago

rajjaisur commented 2 months ago

Cisco_xr exit_config_mode function in case of uncommitted changes error. The current function is not working in case of uncommitted changes. because the output is until "uncommitted". function matching is for "Uncommitted changes found" .

ktbyers commented 2 months ago

You are going to have to expand on the issue you are seeing i.e. the current code should work with this string from IOS-XR:

RP/0/0/CPU0:ios-xrv(config)#end
Uncommitted changes found, commit them before exiting(yes/no/cancel)? [cancel]:
ktbyers commented 1 month ago

@rajjaisur Any updates on my question on why this change is needed?

rajjaisur commented 1 month ago

No it will not because current code is only reading till Uncommitted not full sentence.