Sha256: 5f865554db4072a777ff2b6743405a609af0ed602622f6c6a64217db862c9ab9
Contents?: true
Size: 517 Bytes
Versions: 2
Compression:
Stored size: 517 Bytes
Contents
class AddPack < Oxidized::Model # Used in AddPack Voip, such as AP100B, AP100_G2, AP700, AP1000, AP1100F using Refinements PROMPT = /^.*[>#]\s?$/ expect /-- [Mm]ore --/ do |data, re| send ' ' data.sub re, '' end prompt PROMPT cmd 'enable' cmd 'show running-config' do |cfg| cfg.gsub! /^Building configuration.../, '' cfg.gsub! /^*show running-config/, '' cfg.gsub! PROMPT, '' cfg end cfg :telnet do username /[Ll]ogin:\s?/ password /[Pp]assword:\s?/ end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.30.1 | lib/oxidized/model/addpack.rb |
oxidized-0.30.0 | lib/oxidized/model/addpack.rb |