diff options
| author | Tim Pozar <pozar@lns.com> | 2017-02-20 17:25:44 -0800 | 
|---|---|---|
| committer | Tim Pozar <pozar@lns.com> | 2017-02-20 17:25:44 -0800 | 
| commit | 44e12af03d8b9971b4390e8c741bd3b2e0c1cec8 (patch) | |
| tree | 4aa7f761d0276011e78752651b5ae1ec12286813 /lib | |
| parent | fafbdbc63a0bda9e2b798c15791e428453684eb4 (diff) | |
Added license information and gsub to take out chatty subscriber license updates.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/oxidized/model/junos.rb | 3 | 
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:/) | 
