summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-02-21 09:52:02 +0200
committerGitHub <noreply@github.com>2017-02-21 09:52:02 +0200
commitbabf6e8b991cc5bcdb4577edde8a717476b3c636 (patch)
tree4aa7f761d0276011e78752651b5ae1ec12286813 /lib/oxidized
parentfafbdbc63a0bda9e2b798c15791e428453684eb4 (diff)
parent44e12af03d8b9971b4390e8c741bd3b2e0c1cec8 (diff)
Merge pull request #738 from pozar/license_data
Added junos license information and gsub to take out chatty subscriber liceā€¦
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/junos.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/oxidized/model/junos.rb b/lib/oxidized/model/junos.rb
index 058e3cf..2f59414 100644
--- a/lib/oxidized/model/junos.rb
+++ b/lib/oxidized/model/junos.rb
@@ -8,6 +8,7 @@ class JunOS < Oxidized::Model
cmd :all do |cfg|
cfg = cfg.lines.to_a[1..-2].join if screenscrape
+ cfg.gsub!(/ scale-subscriber (\s+)(\d+)/,' scale-subscriber <count>')
cfg.lines.map { |line| line.rstrip }.join("\n") + "\n"
end
@@ -36,6 +37,8 @@ class JunOS < Oxidized::Model
end
cmd('show chassis hardware') { |cfg| comment cfg }
+ cmd('show system license') { |cfg| comment cfg }
+ cmd('show system license keys') { |cfg| comment cfg }
cfg :telnet do
username(/^login:/)