Sha256: df8c281c68591a09ff7031fb246f565e137fe930b077091282f37dbc97e69ab4

Contents?: true

Size: 571 Bytes

Versions: 33

Compression:

Stored size: 571 Bytes

Contents

class VRP < Oxidized::Model
  # Huawei VRP
  
  prompt /^(<[\w.-]+>)$/
  comment '# '

  cmd :all do |cfg|
    cfg.each_line.to_a[1..-2].join
  end
 
  cfg :telnet do
    username /^Username:$/
    password /^Password:$/
  end

  cfg :telnet, :ssh do 
    post_login 'screen-length 0 temporary'
    pre_logout 'quit'
  end

  cmd 'display version' do |cfg|
    cfg = cfg.each_line.select {|l| not l.match /uptime/ }.join
    comment cfg
  end

  cmd 'display device' do |cfg|
    comment cfg
  end

  cmd 'display current-configuration all' do |cfg|
    cfg
  end
  
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
oxidized-0.20.0 lib/oxidized/model/vrp.rb
oxidized-0.19.0 lib/oxidized/model/vrp.rb
oxidized-0.18.0 lib/oxidized/model/vrp.rb
oxidized-0.17.0 lib/oxidized/model/vrp.rb
oxidized-0.16.3 lib/oxidized/model/vrp.rb
oxidized-0.16.2 lib/oxidized/model/vrp.rb
oxidized-0.16.1 lib/oxidized/model/vrp.rb
oxidized-0.16.0 lib/oxidized/model/vrp.rb
oxidized-0.15.0 lib/oxidized/model/vrp.rb
oxidized-0.14.3 lib/oxidized/model/vrp.rb
oxidized-0.14.2 lib/oxidized/model/vrp.rb
oxidized-0.14.1 lib/oxidized/model/vrp.rb
oxidized-0.14.0 lib/oxidized/model/vrp.rb
oxidized-0.13.1 lib/oxidized/model/vrp.rb
oxidized-0.13.0 lib/oxidized/model/vrp.rb
oxidized-0.12.2 lib/oxidized/model/vrp.rb
oxidized-0.12.1 lib/oxidized/model/vrp.rb
oxidized-0.12.0 lib/oxidized/model/vrp.rb
oxidized-0.11.0 lib/oxidized/model/vrp.rb
oxidized-0.10.0 lib/oxidized/model/vrp.rb