diff options
author | nopedial <sam@arahant.net> | 2015-05-06 20:59:32 +0200 |
---|---|---|
committer | nopedial <sam@arahant.net> | 2015-05-06 20:59:32 +0200 |
commit | ee6f048a8e518ab2d50fb41f99ef5029a518fe01 (patch) | |
tree | 4e23d707d66d13a678efca085d63a778a0200f4e /lib/oxidized/model/panos.rb | |
parent | 0062fb6dd291718714af046ca7be4a6b2c739d74 (diff) | |
parent | ad690160f1f0f96b541feb905a9a642f5307b996 (diff) |
Merge pull request #116 from rixxxx/panos
Palo Alto PAN-OS support
Diffstat (limited to 'lib/oxidized/model/panos.rb')
-rw-r--r-- | lib/oxidized/model/panos.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/oxidized/model/panos.rb b/lib/oxidized/model/panos.rb new file mode 100644 index 0000000..35624b7 --- /dev/null +++ b/lib/oxidized/model/panos.rb @@ -0,0 +1,26 @@ +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:\ .*\n/, '' + comment cfg + end + + cmd 'show config running' do |cfg| + cfg + end + + cfg :ssh do + post_login 'set cli pager off' + pre_logout 'exit' + end +end |