Sha256: 726540f5a7b2d5d818decba7282bb5e36fce7a792a220797241e84a7fb078ed0

Contents?: true

Size: 359 Bytes

Versions: 6

Compression:

Stored size: 359 Bytes

Contents

class Adtran < Oxidized::Model
  # Adtran

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

  cmd :secret do |cfg|
    cfg.gsub!(/password (\S+)/, 'password <hidden>')
    cfg
  end

  cmd 'show running-config'

  cfg :ssh do
    post_login do
      send "enable\n"
      cmd vars(:enable)
    end
    post_login 'terminal length 0'
    pre_logout 'exit'
    sleep 1
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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