diff --git a/CHANGELOG.md b/CHANGELOG.md index 489035714..c838202b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 Fibrestore (fs.com) FSOS (@tcrichton) - model for IP Infusion OcNOS ## Changed diff --git a/docs/Model-Notes/FSOS.md b/docs/Model-Notes/FSOS.md new file mode 100644 index 000000000..b3da73199 --- /dev/null +++ b/docs/Model-Notes/FSOS.md @@ -0,0 +1,11 @@ +# Fiberstore (fs.com) FSOS notes + +This has been tested against the following models and OS versions + +|Model |OS Version and Build | +|--------------------|------------------------------| +|S3400-48T4SP |Version 2.0.2J Build 81736 | +|S3400-48T4SP |Version 2.0.2J Build 95262 | +|S3400-48T6SP |Version 2.2.0F Build 109661 | + +Back to [Model-Notes](README.md) diff --git a/docs/Supported-OS-Types.md b/docs/Supported-OS-Types.md index 51f7a58d5..29abfeff4 100644 --- a/docs/Supported-OS-Types.md +++ b/docs/Supported-OS-Types.md @@ -49,6 +49,7 @@ | |CatOS |[catos](/lib/oxidized/model/catos.rb) | |Cisco Catalyst Express |[ciscoce](/lib/oxidized/model/ciscoce.rb) | |FireLinuxOS |[firelinuxos](/lib/oxidized/model/firelinuxos.rb) +|Fiberstore (fs.com) |FSOS |[fsos](/lib/oxidized/model/fsos.rb) | |[FSOS](Model-Notes/FSOS.md) | |IOS |[ios](/lib/oxidized/model/ios.rb) |@robertcheramy |[IOS](Model-Notes/IOS.md) | |IOSXR |[iosxr](/lib/oxidized/model/iosxr.rb) | |NGA |[cisconga](/lib/oxidized/model/cisconga.rb) diff --git a/lib/oxidized/model/fsos.rb b/lib/oxidized/model/fsos.rb new file mode 100644 index 000000000..07be04df2 --- /dev/null +++ b/lib/oxidized/model/fsos.rb @@ -0,0 +1,43 @@ +class FSOS < Oxidized::Model + # Fiberstore / fs.com + using Refinements + comment '! ' + + # Handle paging + expect /^ --More--.*$/ do |data, re| + send ' ' + data.sub re, '' + end + + cmd :secret do |cfg| + cfg.gsub! /(secret \w+) (\S+).*/, '\\1