Sha256: fffa8b826ca8c5055c13359abad5a864d06bd40be1bb066c63415e769bf66b7a

Contents?: true

Size: 519 Bytes

Versions: 3

Compression:

Stored size: 519 Bytes

Contents

class AudioCodes < Oxidized::Model
  using Refinements

  # Pull config from AudioCodes Mediant devices from version > 7.0

  prompt /^\r?([\w.@() -]+[#>]\s?)$/
  comment '## '

  expect /\s*--MORE--$/ do |data, re|
    send ' '

    data.sub re, ''
  end

  cmd 'show running-config' do |cfg|
    cfg
  end

  cfg :ssh do
    username /^login as:\s$/
    password /^.+password:\s$/
    pre_logout 'exit'
  end

  cfg :telnet do
    username /^Username:\s$/
    password /^Password:\s$/
    pre_logout 'exit'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
oxidized-0.30.1 lib/oxidized/model/audiocodes.rb
oxidized-0.30.0 lib/oxidized/model/audiocodes.rb
oxidized-0.29.1 lib/oxidized/model/audiocodes.rb