Skip to content

Commit

Permalink
Normally, REs are expected to be named as RE0 or RE1. But on some ver…
Browse files Browse the repository at this point in the history
…sions

of QFX, REs are named as LOCALRE. This code patch accommodates this deviation
in naming convention and returns the version number of LOCALRE.
  • Loading branch information
mahantesh committed Dec 23, 2018
1 parent 19f92e2 commit 834a9ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/junos-ez/facts/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
unless master_id.nil?
facts[:version] =
facts[("version_" + "RE" + master_id).to_sym] ||
facts[("version_" + "LOCALRE").to_sym] ||
facts[('version_' + "FPC" + master_id).to_sym]
end
else
Expand Down

0 comments on commit 834a9ae

Please sign in to comment.