Sha256: 188cda3d45eeea35ec0126a408fcfbfba5fc2d0f457ec6ad8257e4724264f3b4

Contents?: true

Size: 345 Bytes

Versions: 2

Compression:

Stored size: 345 Bytes

Contents

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

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

  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

2 entries across 2 versions & 1 rubygems

Version Path
oxidized-0.28.0 lib/oxidized/model/airfiber.rb
oxidized-0.27.0 lib/oxidized/model/airfiber.rb