Sha256: 10d3d96bb18fe086a33205ab5451c64c0fb7c827a18013f4cbd819d0797e5f87

Contents?: true

Size: 667 Bytes

Versions: 12

Compression:

Stored size: 667 Bytes

Contents

class Mtrlrfs < Oxidized::Model
  # Motorola RFS/Extreme WM

  comment  '# '

  cmd :all do |cfg|
    # xos inserts leading \r characters and other trailing white space.
    # this deletes extraneous \r and trailing white space.
    cfg.each_line.to_a[1..-2].map { |line| line.delete("\r").rstrip }.join("\n") + "\n"
  end

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

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

  cmd 'show running-config'

  cfg :telnet do
    username /^login:/
    password /^\r*password:/
  end

  cfg :telnet, :ssh do
    post_login 'terminal length 0'
    pre_logout do
      send "exit\n"
      send "n\n"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
oxidized-0.29.0 lib/oxidized/model/mtrlrfs.rb
oxidized-0.28.0 lib/oxidized/model/mtrlrfs.rb
oxidized-0.27.0 lib/oxidized/model/mtrlrfs.rb
oxidized-0.26.3 lib/oxidized/model/mtrlrfs.rb
oxidized-0.26.2 lib/oxidized/model/mtrlrfs.rb
oxidized-0.26.1 lib/oxidized/model/mtrlrfs.rb
oxidized-0.26.0 lib/oxidized/model/mtrlrfs.rb
oxidized-0.25.1 lib/oxidized/model/mtrlrfs.rb
oxidized-0.25.0 lib/oxidized/model/mtrlrfs.rb
oxidized-0.24.0 lib/oxidized/model/mtrlrfs.rb
oxidized-0.23.0 lib/oxidized/model/mtrlrfs.rb
oxidized-0.22.0 lib/oxidized/model/mtrlrfs.rb