Skip to content

Commit 40e8620

Browse files
authored
Merge branch 'master' into rstrip-procurve
2 parents 2919901 + 47dfeaf commit 40e8620

10 files changed

Lines changed: 33 additions & 5 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
ruby-version: ['3.0', '3.1', '3.2', '3.3', '3.4', 'ruby-head']
22+
ruby-version: ['3.0', '3.1', '3.2', '3.3', '3.4', '4.0']
2323
continue-on-error: ${{ matrix.ruby-version == 'ruby-head' }}
2424

2525
steps:

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1616
### Fixed
1717
- procurve: hide the SNMP community on `snmp-server host <ip> community "<name>"` lines (@thanegill)
1818
- procurve: hide local user password hashes (`password ... sha1 "<hash>"`) when remove_secret is true (@thanegill)
19+
- source/sql: support defining port in configuration. Closes #3853 (@ytti)
20+
21+
### Changed
22+
- docker: set LANG=C.UTF-8. Fixes #3690 (@ytti)
23+
24+
### Fixed
25+
- siklu: allow parenthesis in prompt. Fixes #3841 (@ytti)
26+
- fortios: allow parenthesis in prompt. Fixes #3846 (@ytti)
27+
- fortigate: prompt can contain HA cluster status. Fixes #3846 (@robertcheramy)
1928

2029
## [0.37.0 - 2026-05-20]
2130
### Added

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM docker.io/debian:trixie-slim
22

3+
ENV LANG=C.UTF-8
4+
35
##### Place "static" commands at the beginning to optimize image size and build speed
46

57
# add non-privileged user

lib/oxidized/model/fortigate.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ class FortiGate < Oxidized::Model
33

44
comment '# '
55

6-
prompt /^(\(\w\) )?([-\w.~]+(\s[(\w\-.)]+)?~?\s?[#>$]\s?)$/
7-
6+
prompt(/
7+
^
8+
(?:\(\w\)\ )? # optional status indicator, e.g. "(M) "
9+
[-\w.~]+ # hostname
10+
(?:\((?:\w+)\))? # optional HA cluster status (Primary|Secondary)
11+
(?:\ [(\w\-.)]+)? # optional VDOM
12+
~?\ ?[#>$]\ ?$ # End of prompt
13+
/x)
814
# When a post-login-banner is enabled, you have to press "a" to log in
915
expect /^\(Press\s'a'\sto\saccept\):/ do |data, re|
1016
send 'a'

lib/oxidized/model/fortios.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class FortiOS < Oxidized::Model
33

44
comment '# '
55

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

88
# When a post-login-banner is enabled, you have to press "a" to log in
99
expect /^\(Press\s'a'\sto\saccept\):/ do |data, re|

lib/oxidized/model/siklu.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class Siklu < Oxidized::Model
33

44
# Siklu EtherHaul #
55

6-
prompt /^[\^M\s]{0,}[\w\-\s."]+>$/
6+
prompt /^[\^M\s]{0,}[\w\-\s."()]+>$/
77

88
cmd 'copy startup-configuration display' do |cfg|
99
cfg.each_line.to_a[2..2].join

lib/oxidized/source/sql.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def connect
6868
options = {
6969
adapter: @cfg.adapter,
7070
host: @cfg.host?,
71+
port: @cfg.port?,
7172
user: @cfg.user?,
7273
password: @cfg.password?,
7374
database: @cfg.database,

spec/model/data/fortigate#generic#prompt.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ pass:
66
# FortiOS
77
- 'oxidized-Firewall123 # '
88
- 'OXI-FW121 (global) # '
9+
# Issue #3846
10+
- 'hostname(Primary) # '
11+
- 'hostname(Primary) (global) # '
12+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pass:
2+
# Issue #3846
3+
- 'hostname(Primary) #'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pass:
2+
# Issue #3841
3+
- '111Cedar-NYArtCenter_(111)>'

0 commit comments

Comments
 (0)