Sha256: 99d355c14866cff964695569316c5b5bed5b62478d1588d6c974744de2f25ba6
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
module Corona class Model def self.map sysDescr, sysObjectID case sysDescr when /Cisco Catalyst Operating System/i 'catos' when /Cisco Controller/ 'aireos' when /IOS XR/ 'iosxr' when /NX-OS/ 'nxos' when /cisco/i, /Application Control Engine/i 'ios' when /JUNOS/ 'junos' when /^NetScreen/, /^SSG-\d+/ 'screenos' when /Arista Networks EOS/ 'eos' when /IronWare/ 'ironware' when /^Summit/ 'xos' when /TiMOS/ 'timos' when /^Alcatel-Lucent \S+ [789]\./ #aos <7 is vxworks, >=7 is linux 'aos7' when /^AOS-W/ 'aosw' when /^Alcatel-Lucent/ 'aos' when /^AX Series/ 'acos' when /ProCurve/ # ProCurve OS does not seem to have name? 'procurve' when /^\d+[A-Z]\sEthernet Switch$/ 'powerconnect' else case sysObjectID when Regexp.new('^' + Regexp.quote('1.3.6.1.4.1.12356.')) 'fortios' # 1.3.6.1.4.1.12356.101.1.10004 else 'unsupported' end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
corona-0.0.10 | lib/corona/model.rb |
corona-0.0.9 | lib/corona/model.rb |
corona-0.0.8 | lib/corona/model.rb |