Sha256: 013413c8bc576f5037ee922f77226ae79aca2f299aadb84140e1cdbf11bb032d

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

class Airfiber < Oxidized::Model
  # Ubiquiti Airfiber (tested with Airfiber 11FX)

  prompt /^AF[\w\.-]+#/i

  cmd :all do |cfg|
    cfg.cut_both
  end

  pre do
    cmd 'cat /tmp/system.cfg'
  end

  cfg :telnet do
    username /^[\w\W]+\slogin:\s$/
    password /^[p:P]assword:\s$/
  end

  cfg :telnet, :ssh do
    pre_logout 'exit'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oxidized-0.29.0 lib/oxidized/model/airfiber.rb