Skip to content

Commit

Permalink
Merge pull request #3062 from nickhilliard/nf-ocnos
Browse files Browse the repository at this point in the history
Add support for IP Infusion OcNOS
  • Loading branch information
robertcheramy authored Feb 16, 2024
2 parents b0a8003 + 4da2e3f commit 2a6d2ff
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- added SCP input (@aeiodelic)
- Added `linux/arm64` and `linux/amd64` platforms to Docker build/publish. (@disaac)
- Added verion info for Vyatta (@systeembeheerder)
- model for IP Infusion OcNOS

## 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 @@ -108,6 +108,7 @@
|Huawei |VRP |[vrp](/lib/oxidized/model/vrp.rb) | |[VRP-Huawei](Model-Notes/VRP-Huawei.md)
| |SmartAX series |[smartax](/lib/oxidized/model/smartax.rb) | |[SmartAX-Huawei](Model-Notes/SmartAX-Huawei.md)
|Icotera |6400 series |[icotera](/lib/oxidized/model/icotera.rb)
|IP Infusion |OcNOS |[ocnos](/lib/oxidized/model/ocnos.rb)
|Juniper |JunOS |[junos](/lib/oxidized/model/junos.rb) | |[MX/QFX/EX/SRX/J Series](Model-Notes/JunOS.md)
| |ScreenOS (Netscreen) |[screenos](/lib/oxidized/model/screenos.rb)
|LANCOM Systems GmbH |LCOS |[lancom](/lib/oxidized/model/lancom.rb)
Expand Down
42 changes: 42 additions & 0 deletions lib/oxidized/model/ocnos.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
class OcNOS < Oxidized::Model
using Refinements

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

cfg :ssh do
post_login 'terminal length 0'
pre_logout do
send "disable\r"
send "logout\r"
end
end

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

cmd 'show version' do |cfg|
comment cfg
end

cmd 'show system fru' do |cfg|
comment cfg
end

cmd 'show system-information board-info' do |cfg|
comment cfg
end

cmd 'show forwarding profile limit' do |cfg|
comment cfg
end

cmd 'show license' do |cfg|
comment cfg
end

cmd 'show running-config' do |cfg|
cfg
end
end

0 comments on commit 2a6d2ff

Please sign in to comment.