From 834a9ae41c8fbd34af1c571bb0c37d1407430e33 Mon Sep 17 00:00:00 2001 From: mahantesh Date: Sun, 23 Dec 2018 10:05:18 +0530 Subject: [PATCH] Normally, REs are expected to be named as RE0 or RE1. But on some versions of QFX, REs are named as LOCALRE. This code patch accommodates this deviation in naming convention and returns the version number of LOCALRE. --- lib/junos-ez/facts/version.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/junos-ez/facts/version.rb b/lib/junos-ez/facts/version.rb index d4fc740..a3630d1 100644 --- a/lib/junos-ez/facts/version.rb +++ b/lib/junos-ez/facts/version.rb @@ -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