Sha256: fc9f2a8c287600ee45a7c27ffcf34f8c623a5ab9c603e204135aafaa25308bac
Contents?: true
Size: 730 Bytes
Versions: 4
Compression:
Stored size: 730 Bytes
Contents
class ACMEPACKET < Oxidized::Model using Refinements # Oracle ACME Packet 3k, 4k, 6k series prompt /^\r*([\w.@()-\/]+[#>]\s?)$/ comment '! ' cmd :all do |cfg, cmdstring| new_cfg = comment "COMMAND: #{cmdstring}\n" new_cfg << cfg.cut_both end cmd 'show version' do |cfg| comment cfg end cmd 'show running-config' do |cfg| cfg end cfg :telnet do password /^Password:/i end cfg :telnet, :ssh do # preferred way to handle additional passwords post_login do if vars(:enable) == true cmd "enable" elsif vars(:enable) cmd "enable", /^[pP]assword:/ cmd vars(:enable) end end pre_logout 'exit' pre_logout 'exit' end end
Version data entries
4 entries across 4 versions & 1 rubygems