Sha256: 39a69793225f34aa338f5861d22e8a882b315a5c6ce7e2311e6032f1165cb20f

Contents?: true

Size: 667 Bytes

Versions: 3

Compression:

Stored size: 667 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

3 entries across 3 versions & 1 rubygems

Version Path
oxidized-0.24.0 lib/oxidized/model/panos.rb
oxidized-0.23.0 lib/oxidized/model/panos.rb
oxidized-0.22.0 lib/oxidized/model/panos.rb