Sha256: c1ee6aae2c637826e2a46bfc31bed8c9a6f8d11c421fbc722b7c439a3a970d1d
Contents?: true
Size: 505 Bytes
Versions: 3
Compression:
Stored size: 505 Bytes
Contents
class NDMS < Oxidized::Model using Refinements # 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.30.1 | lib/oxidized/model/ndms.rb |
oxidized-0.30.0 | lib/oxidized/model/ndms.rb |
oxidized-0.29.1 | lib/oxidized/model/ndms.rb |