Sha256: 366ec4e05ba03f9cf2f52b4d587749f0daa2ec9c976680423b731ace35524820

Contents?: true

Size: 651 Bytes

Versions: 7

Compression:

Stored size: 651 Bytes

Contents

class SmartAX < Oxidized::Model
  # 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

7 entries across 7 versions & 1 rubygems

Version Path
oxidized-0.29.0 lib/oxidized/model/smartax.rb
oxidized-0.28.0 lib/oxidized/model/smartax.rb
oxidized-0.27.0 lib/oxidized/model/smartax.rb
oxidized-0.26.3 lib/oxidized/model/smartax.rb
oxidized-0.26.2 lib/oxidized/model/smartax.rb
oxidized-0.26.1 lib/oxidized/model/smartax.rb
oxidized-0.26.0 lib/oxidized/model/smartax.rb