Skip to content

Commit

Permalink
Merge pull request #3112 from h-lopez/vyos_priv_level_prompt_fix
Browse files Browse the repository at this point in the history
vyatta/vyos: update prompt matcher to account for non-privileged users
  • Loading branch information
robertcheramy authored Apr 15, 2024
2 parents c79826a + 0a4b73d commit 2bfd3f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- h3c: change prompt to expect either angle (user-view) or square (system-view) brackets (@nl987)

### Fixed
- fixed prompt for vyos/vyatta to allow logins with non-priviliged accounts. Fixes #3111 (@h-lopez)


## [0.30.1 – 2024-04-12]
Expand Down
2 changes: 1 addition & 1 deletion lib/oxidized/model/vyatta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Vyatta < Oxidized::Model

# Brocade Vyatta / VyOS model #

prompt /@.*?:~\$\s/
prompt /@.*(:~\$|>)\s/

cmd :all do |cfg|
cfg.lines.to_a[1..-2].join
Expand Down

0 comments on commit 2bfd3f2

Please sign in to comment.