Sha256: e0d88c39e260b21c93d3b4ad191d5e8229e8cf0faa4164804fdfdf90f9785a88
Contents?: true
Size: 542 Bytes
Versions: 8
Compression:
Stored size: 542 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.cut_both 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
8 entries across 8 versions & 1 rubygems