Sha256: 20fabe767ecfbbf7fd9407983a08b18956eff32c744a72499392f59e79ce274a

Contents?: true

Size: 485 Bytes

Versions: 9

Compression:

Stored size: 485 Bytes

Contents

class NDMS < Oxidized::Model
  # Pull config from Zyxel Keenetic devices from version NDMS >= 2.0

  comment  '! '

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

  cmd 'show version' do |cfg|
    cfg = cfg.each_line.to_a[1..-3].join
    comment cfg
  end

  cmd 'show running-config' do |cfg|
    cfg = cfg.cut_both.each_line.reject { |line| line.match /(clock date|checksum)/ }.join
    cfg
  end

  cfg :telnet do
    username /^Login:/
    password /^Password:/
    pre_logout 'exit'
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
oxidized-0.29.0 lib/oxidized/model/ndms.rb
oxidized-0.28.0 lib/oxidized/model/ndms.rb
oxidized-0.27.0 lib/oxidized/model/ndms.rb
oxidized-0.26.3 lib/oxidized/model/ndms.rb
oxidized-0.26.2 lib/oxidized/model/ndms.rb
oxidized-0.26.1 lib/oxidized/model/ndms.rb
oxidized-0.26.0 lib/oxidized/model/ndms.rb
oxidized-0.25.1 lib/oxidized/model/ndms.rb
oxidized-0.25.0 lib/oxidized/model/ndms.rb