Skip to content

Commit

Permalink
Fix aos7 prompt
Browse files Browse the repository at this point in the history
Fixes #3371
  • Loading branch information
robertcheramy committed Jan 10, 2025
1 parent 0e19aed commit f782397
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- sonicos: fix prompt for hostnames containing "-" . Fixes #3333 (@robertcheramy)
- xos: Hide radius accounting secret
- fsos: Hide AAA and SNMP secrets (@RayaneB35)
- aos7: fix prompt for version 8.8x. Fixes #3351 (@robertcheramy)

## [0.31.0 – 2024-11-29]

Expand Down
2 changes: 2 additions & 0 deletions lib/oxidized/model/aos7.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ class AOS7 < Oxidized::Model
# Alcatel-Lucent Operating System Version 7 (Linux based)
# used in OmniSwitch 6900/10k

prompt /^([\w.@-]+ ?[#>]\s?)$/

comment '! '

cmd :all do |cfg, cmdstring|
Expand Down
7 changes: 7 additions & 0 deletions spec/model/data/aos7:generic:prompt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pass:
- "S01-P1-RK13-SW01> "
- "S01-P1-RK13-SW01# "
# Issue #3351: Firmware 8.8x adds a space after the hostname
- "S01-P1-RK13-SW01 > "
- "S01-P1-RK13-SW01 # "

0 comments on commit f782397

Please sign in to comment.