Skip to content

Commit

Permalink
Update hp_comware.py handle RBM in prompt (#3297)
Browse files Browse the repository at this point in the history
  • Loading branch information
yucai100 authored Oct 17, 2023
1 parent d0287a3 commit 33b665c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions netmiko/hp/hp_comware.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ def set_base_prompt(
pattern=pattern,
)

# Strip off any leading RBM_. characters for firewall HA
prompt = re.sub(r"^RBM_.", "", prompt, flags=re.M)

# Strip off leading character
prompt = prompt[1:]
prompt = prompt.strip()
Expand Down

0 comments on commit 33b665c

Please sign in to comment.