Sha256: dcec763f781ed7a7325e5867a04f90b60826300edc7fb75f6a0dffd62e89e4e3

Contents?: true

Size: 883 Bytes

Versions: 4

Compression:

Stored size: 883 Bytes

Contents

# ECI Telecom Apollo
# Tested on OPT9608 systems via SSH and telnet

class ECIapollo < Oxidized::Model
  using Refinements

  prompt /^([\w.@()-]+[#>]\s?)$/
  comment '# '

  cmd :all do |cfg|
    cfg.each_line.to_a[1..-2].join
  end

  cmd :secret do |cfg|
    cfg.gsub!(/community (\S+) {/, 'community <hidden> {')
    cfg.gsub!(/ "\$\d\$\S+; ## SECRET-DATA/, ' <secret removed>;')
    cfg
  end

  cfg :telnet do
    username(/^login:/)
    password(/^Password:/)
  end

  cfg :telnet, :ssh do
    post_login 'set cli screen-length 0'
    post_login 'set cli screen-width 0'
    pre_logout 'exit'
  end

  cmd('show version')           { |cfg| comment cfg }
  cmd('show system licenses')   { |cfg| comment cfg }
  cmd('show configuration')     { |cfg| comment cfg }
  cmd('show configuration | display-set') { |cfg| cfg }
  cmd('show chassis inventory') { |cfg| comment cfg }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
oxidized-0.31.0 lib/oxidized/model/eciapollo.rb
oxidized-0.30.1 lib/oxidized/model/eciapollo.rb
oxidized-0.30.0 lib/oxidized/model/eciapollo.rb
oxidized-0.29.1 lib/oxidized/model/eciapollo.rb