Sha256: 3315328e3e076691ee1f01f1e34dd0fdee3f00d094dd7bc4b43ad311585342ba
Contents?: true
Size: 599 Bytes
Versions: 3
Compression:
Stored size: 599 Bytes
Contents
class AOS < Oxidized::Model # Alcatel-Lucent Operating System # used in OmniSwitch comment '! ' cmd :all do |cfg| cfg.each_line.to_a[1..-2].join end cmd 'show system' do |cfg| cfg = cfg.each_line.find { |line| line.match 'Description' } comment cfg.to_s.strip end cmd 'show chassis' do |cfg| comment cfg end cmd 'show hardware info' do |cfg| comment cfg end cmd 'show configuration snapshot' do |cfg| cfg end cfg :telnet do username /^login : / password /^password : / end cfg :telnet, :ssh do pre_logout 'exit' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.24.0 | lib/oxidized/model/aos.rb |
oxidized-0.23.0 | lib/oxidized/model/aos.rb |
oxidized-0.22.0 | lib/oxidized/model/aos.rb |