Sha256: 750e7d678d85729c6b68dcc73444e57e134f82e6353075b5101623482675d3f8

Contents?: true

Size: 581 Bytes

Versions: 6

Compression:

Stored size: 581 Bytes

Contents

class AOS < Oxidized::Model
  # Alcatel-Lucent Operating System
  # used in OmniSwitch

  comment  '! '

  cmd :all do |cfg|
    cfg.cut_both
  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

6 entries across 6 versions & 1 rubygems

Version Path
oxidized-0.26.3 lib/oxidized/model/aos.rb
oxidized-0.26.2 lib/oxidized/model/aos.rb
oxidized-0.26.1 lib/oxidized/model/aos.rb
oxidized-0.26.0 lib/oxidized/model/aos.rb
oxidized-0.25.1 lib/oxidized/model/aos.rb
oxidized-0.25.0 lib/oxidized/model/aos.rb