Sha256: cf074cd5bc1b1487227419a09de4802bb5d5ccc67df862c2a9b50689599b8ae0

Contents?: true

Size: 672 Bytes

Versions: 3

Compression:

Stored size: 672 Bytes

Contents

class SmartAX < Oxidized::Model
  using Refinements

  # Huawei SmartAX GPON/EPON/DOCSIS network access devices
  prompt /^([\w.-]+[>#])$/

  comment '#'

  cfg :telnet do
    username /^>>User name:$/
    password /^>>User password:$/
  end

  cfg :ssh, :telnet do
    post_login "enable"
    post_login "undo interactive"
    post_login "undo smart"
    post_login "scroll"
    pre_logout "quit"
  end

  # 'display current-configuration' returns current configuration stored in memory
  # 'display saved-configuration'   returns configuration stored in the file system which is used upon reboot
  cmd 'display current-configuration' do |cfg|
    cfg.cut_both
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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