Sha256: 2dd48250c01ca8035f41f7a68784e82fd6d800acbb97f8ae0536e5eb1552a182

Contents?: true

Size: 432 Bytes

Versions: 31

Compression:

Stored size: 432 Bytes

Contents

class NXOS < Oxidized::Model

  prompt /^(\r?[\w.@_()-]+[#]\s?)$/
  comment '! '

  cmd 'show version' do |cfg|
    cfg = cfg.each_line.take_while { |line| not line.match(/uptime/i) }
    comment cfg.join ""
  end

  cmd 'show inventory' do |cfg|
    comment cfg
  end 

  cmd 'show running-config' do |cfg|
    cfg.gsub! /^!Time:[^\n]*\n/, ''
  end

  cfg :ssh do
    post_login 'terminal length 0'
    pre_logout 'exit'
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

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