Skip to content

Commit

Permalink
[AOSW] Add show license passphrase (ytti#1465)
Browse files Browse the repository at this point in the history
Used instead of a serial number for virtual mobility master and virtual controllers
  • Loading branch information
thanegill authored and ytti committed Jan 15, 2020
1 parent 35bbc62 commit c49db76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/oxidized/model/aosw.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ class AOSW < Oxidized::Model
rstrip_cfg comment cfg
end

cmd 'show license passphrase' do |cfg|
cfg = "" if cfg.match /(Invalid input detected at '\^' marker|Parse error)/ # Don't show for unsupported devices (IAP and MAS)
rstrip_cfg comment cfg
end

cmd 'show running-config' do |cfg|
out = []
cfg.each_line do |line|
Expand Down

0 comments on commit c49db76

Please sign in to comment.