Sha256: 7bf44816998d5887f25d9c606d1377235dc7d59969aa350ab8f51549ec50a13c
Contents?: true
Size: 792 Bytes
Versions: 2
Compression:
Stored size: 792 Bytes
Contents
class PanOS < Oxidized::Model using Refinements # 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! /^device-dictionary-version.*?: .*$/, '' cfg.gsub! /^device-dictionary-release-date.*?: .*$/, '' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.30.1 | lib/oxidized/model/panos.rb |
oxidized-0.30.0 | lib/oxidized/model/panos.rb |