napalm: Cannot install config if candidate change username

Description of Issue/Question

When the candidate configuration change an username, the configuration replace ask for a confirmation:

This operation will remove all username related configurations with same name.Do you want to continue? [confirm]

load_replace_candidate hangs and fails to complete.

Did you follow the steps from https://github.com/napalm-automation/napalm#faq

  • Yes
  • No

Setup

napalm-ios version

(Paste verbatim output from pip freeze | grep napalm-ios between quotes below)

-e git+https://github.com/napalm-automation/napalm-ios@8cf5d607a5b8e285d505c6827f828f659ca3d781#egg=napalm_ios

IOS version

(Paste verbatim output from show version between quotes below)

Version 03.06.06E

Steps to Reproduce the Issue

load_replace_candidate a configuration that has different username than those defined in the running

Error Traceback

(Paste the complete traceback of the exception between quotes below)

cannot install config: Search pattern never detected in send_command_expect: [>##]\\s*$

Issue moved from https://github.com/napalm-automation/napalm-ios/issues/215

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 2
  • Comments: 19 (11 by maintainers)

Most upvoted comments

Hi all! I have this issue as well. I’m running a 2960X switch stack on 15.2(2)E7.

Regards,

@ktbyers I can still reproduce this in 03.06.06E (IOS-XE train, I’m hitting this on a C3650).

Note that I only have one user on this device and I’m trying to change its name.

switch#show run | i username
username admin privilege 15 secret 5 some_secret_crypted_password
switch#show archive config differences flash:/candidate_config.txt
!Contextual Config Diffs:
+username admin2 privilege 15 secret 5 same_secret_crypted_password
-username admin privilege 15 secret 5 same_secret_crypted_password

switch#configure replace flash:candidate_config.txt force revert trigger error 
This operation will remove all username related configurations with same name.Do you want to continue? [confirm]