Skip to content

Commit

Permalink
Merge pull request #3100 from Beanfield/onefinity
Browse files Browse the repository at this point in the history
Initial implementation of the Fujistu 1Finity
  • Loading branch information
robertcheramy committed Mar 25, 2024
2 parents 44b09d1 + cb3690b commit ea40b51
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- Added verion info for Vyatta (@systeembeheerder)
- model for Fibrestore (fs.com) FSOS (@tcrichton)
- model for IP Infusion OcNOS
- model for Fujitsu 1finity (@jerji)

### Changed
- tp-link: fixed enable mode post login entrance (@mirackle-spb)
Expand Down
1 change: 1 addition & 0 deletions docs/Supported-OS-Types.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
|FortiGate |FortiOS |[fortios](/lib/oxidized/model/fortios.rb) | |[FortiOS](Model-Notes/FortiOS.md)
|FortiWLC |FortiWLC |[fortiwlc](/lib/oxidized/model/fortiwlc.rb)
|Fujitsu |PRIMERGY Blade switch 1/10Gbe |[fujitsupy](/lib/oxidized/model/fujitsupy.rb)
| |1FINITY Switches |[onefinity](/lib/oxidized/model/onefinity.rb)
|GCOM Technologies |Broadband Network Platform Software|[gcombnps](/lib/oxidized/model/gcombnps.rb)
|Grandstream Networks|GSX |[grandstream](/lib/oxidized/model/grandstream.rb)
|Hatteras |Hatteras |[hatteras](/lib/oxidized/model/hatteras.rb)
Expand Down
18 changes: 18 additions & 0 deletions lib/oxidized/model/onefinity.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
class OneFinity < Oxidized::Model
using Refinements

# Fujitsu 1finity

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

cmd :all do |cfg|
cfg.each_line.to_a[1..-3].join
end

cmd 'show configuration | display set | nomore'

cfg :ssh do
pre_logout 'exit'
exec true
end
end

0 comments on commit ea40b51

Please sign in to comment.