Sha256: e0017fadd14c643115938b522faec59eb0c43ec3f6e216f0153d4ce0372aba62

Contents?: true

Size: 656 Bytes

Versions: 9

Compression:

Stored size: 656 Bytes

Contents

class PanOS < Oxidized::Model
  # PaloAlto PAN-OS model #

  comment '! '

  prompt /^[\w.@:()-]+>\s?$/

  cmd :all do |cfg|
    cfg.each_line.to_a[2..-3].join
  end

  cmd 'show system info' do |cfg|
    cfg.gsub! /^(up)?time: .*$/, ''
    cfg.gsub! /^app-.*?: .*$/, ''
    cfg.gsub! /^av-.*?: .*$/, ''
    cfg.gsub! /^threat-.*?: .*$/, ''
    cfg.gsub! /^wildfire-.*?: .*$/, ''
    cfg.gsub! /^wf-private.*?: .*$/, ''
    cfg.gsub! /^url-filtering.*?: .*$/, ''
    cfg.gsub! /^global-.*?: .*$/, ''
    comment cfg
  end

  cmd 'show config running' do |cfg|
    cfg
  end

  cfg :ssh do
    post_login 'set cli pager off'
    pre_logout 'quit'
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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