Sha256: 578bcb64ad1b2aeaf8cc08af3d0095b4dbe1ab883bf705efd9b52d5658fc12ce
Contents?: true
Size: 560 Bytes
Versions: 3
Compression:
Stored size: 560 Bytes
Contents
class StoneOS < Oxidized::Model # Hillstone Networks StoneOS software prompt /^\r?[\w.()-]+[#>](\s)?$/ comment '# ' expect /^\s.*--More--.*$/ do |data, re| send ' ' data.sub re, '' end cmd :all do |cfg| cfg.each_line.to_a[1..-2].join end cmd 'show configuration running' cmd 'show version' do |cfg| comment cfg end cfg :telnet do username(/^login:/) password(/^Password:/) end cfg :telnet, :ssh do post_login 'terminal length 256' post_login 'terminal width 512' pre_logout 'exit' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.24.0 | lib/oxidized/model/stoneos.rb |
oxidized-0.23.0 | lib/oxidized/model/stoneos.rb |
oxidized-0.22.0 | lib/oxidized/model/stoneos.rb |