Sha256: 433961cefff62d8b962e0a59f4ce86b86c95c65b4741ae89065b84843e825a98
Contents?: true
Size: 692 Bytes
Versions: 8
Compression:
Stored size: 692 Bytes
Contents
class VRP < Oxidized::Model # Huawei VRP prompt /^(<[\w.-]+>)$/ comment '# ' cmd :secret do |cfg| cfg.gsub! /(pin verify (?:auto|)).*/, '\\1 <PIN hidden>' cfg.gsub! /(%\^%#.*%\^%#)/, '<secret hidden>' cfg end cmd :all do |cfg| cfg.cut_both end cfg :telnet do username /^Username:$/ password /^Password:$/ end cfg :telnet, :ssh do post_login 'screen-length 0 temporary' pre_logout 'quit' end cmd 'display version' do |cfg| cfg = cfg.each_line.reject { |l| l.match /uptime/ }.join comment cfg end cmd 'display device' do |cfg| comment cfg end cmd 'display current-configuration all' do |cfg| cfg end end
Version data entries
8 entries across 8 versions & 1 rubygems