Sha256: 25974ad128de3bcfc61e0d4e99958bd15d0f9e3bbc250ce9bef6261aca972a7c

Contents?: true

Size: 795 Bytes

Versions: 32

Compression:

Stored size: 795 Bytes

Contents

class TiMOS < Oxidized::Model

  # Alcatel-Lucent TiMOS (Timetra)
  # used in SR/ESS/SAS routers
 
  comment  '# '

  prompt /^([-\w\.:>\*]+\s?[#>]\s?)$/

  cmd :all do |cfg, cmdstring|
    new_cfg = comment "COMMAND: #{cmdstring}\n"
    new_cfg << cfg.each_line.to_a[1..-2].join
  end

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

  cmd 'show system information' do |cfg|
    # strip uptime
    cfg.sub! /^System Up Time.*\n/, ''
    comment cfg
  end

  cmd 'show card state' do |cfg|
    comment cfg
  end

  cmd 'show boot-messages' do |cfg|
    cfg.gsub! /\r/, ""
    comment cfg
  end

  cmd 'admin display-config'

  cfg :telnet do
    username /^Login: /
    password /^Password: /
  end

  cfg :telnet, :ssh do
    post_login 'environment no more'
    pre_logout 'logout'
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
oxidized-0.16.2 lib/oxidized/model/timos.rb
oxidized-0.16.1 lib/oxidized/model/timos.rb
oxidized-0.16.0 lib/oxidized/model/timos.rb
oxidized-0.15.0 lib/oxidized/model/timos.rb
oxidized-0.14.3 lib/oxidized/model/timos.rb
oxidized-0.14.2 lib/oxidized/model/timos.rb
oxidized-0.14.1 lib/oxidized/model/timos.rb
oxidized-0.14.0 lib/oxidized/model/timos.rb
oxidized-0.13.1 lib/oxidized/model/timos.rb
oxidized-0.13.0 lib/oxidized/model/timos.rb
oxidized-0.12.2 lib/oxidized/model/timos.rb
oxidized-0.12.1 lib/oxidized/model/timos.rb
oxidized-0.12.0 lib/oxidized/model/timos.rb
oxidized-0.11.0 lib/oxidized/model/timos.rb
oxidized-0.10.0 lib/oxidized/model/timos.rb
oxidized-0.9.0 lib/oxidized/model/timos.rb
oxidized-0.8.1 lib/oxidized/model/timos.rb
oxidized-0.8.0 lib/oxidized/model/timos.rb
oxidized-0.7.2 lib/oxidized/model/timos.rb
oxidized-0.7.1 lib/oxidized/model/timos.rb