Sha256: 41ef29ff9913cece8f3fdfb1e6b221fed24019f74fd9c272cc085010c3dc67dc
Contents?: true
Size: 710 Bytes
Versions: 4
Compression:
Stored size: 710 Bytes
Contents
class StoneOS < Oxidized::Model using Refinements # 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.gsub! /+.*+/, '' # Linebreak handling cfg.cut_both end cmd 'show configuration running' do |cfg| cfg.gsub! /^Building configuration.*$/, '' end cmd 'show version' do |cfg| cfg.gsub! /^Uptime is .*$/, '' 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.31.0 | lib/oxidized/model/stoneos.rb |
oxidized-0.30.1 | lib/oxidized/model/stoneos.rb |
oxidized-0.30.0 | lib/oxidized/model/stoneos.rb |
oxidized-0.29.1 | lib/oxidized/model/stoneos.rb |