Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix if cleartext authentication is used on HSRP in NX-OS #1616

Conversation

SaschaSchwarzK
Copy link
Contributor

When cleartext authentication is used the parser raises an exception:

raw:

Vlan650 - Group 650 (HSRP-V2) (IPv4)
  Local state is Active, priority 150 (Cfged 150), may preempt
    Forwarding threshold(for vPC), lower: 0 upper: 150
  Preemption Delay (Seconds) Reload:120
  Hellotime 3 sec, holdtime 10 sec
  Next hello sent in 1.486000 sec(s)
  Virtual IP address is 100.100.100.225 (Cfged)
  Active router is local
  Standby router is 100.100.100.227 , priority 100 expires in 8.224000 sec(s)
  Authentication text "cisco"
  Virtual mac address is 0000.0fff.f28a (Default MAC)
  1 state changes, last state change 1y36w
  IP redundancy name is hsrp-Vlan650-650 (default)

error message

    raise TextFSMError('State Error raised. Rule Line: %s. Input Line: %s'
textfsm.parser.TextFSMError: State Error raised. Rule Line: 55. Input Line:   Authentication text "cisco"

Command output is from Nexus9000 C93180YC-FX, NXOS version 9.3(3)

Although it is considered as bad practice to use unencrypted authentication, it is a valid configuration setting in NX-OS:

configuration guide l3_cli_nxos

@jmcgill298 jmcgill298 merged commit aab742e into networktocode:master Feb 20, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants