diff --git a/lib/jnpr/junos/facts/current_re.py b/lib/jnpr/junos/facts/current_re.py
index c32ec3d1..e59b7a59 100644
--- a/lib/jnpr/junos/facts/current_re.py
+++ b/lib/jnpr/junos/facts/current_re.py
@@ -64,7 +64,7 @@ def get_facts(device):
                                 octets = ip.split(".", 3)
                                 # The 2nd octet will be cluster-id << 4
                                 cluster_id_octet = str(
-                                    int(device.facts["srx_cluster_id"]) << 4
+                                    (int(device.facts["srx_cluster_id"]) & 0x000F) << 4
                                 )
                                 # node0 will have an IP of
                                 #     129.<cluster_id_octet>.0.1

wrong device version when fetching pyez facts for nfx250ha-c
Hi,
The pyez version info received for this particular device:nfx250ha-c for is coming wrong.

{'2RE': False, 'HOME': '/var/home/regress', 'RE0': {'status': 'OK', 'up_time': '10 hours, 35 minutes, 48 seconds', 'mastership_state': 'master', 'model': 'RE-NFX250-S2', 'last_reboot_reason': '0x1:power cycle/failure'}, 'RE1': None, 'RE_hw_mi': True, 'current_re': ['master', 'fpc0', 'node', 'fwdd', 'member', 'pfem', 're0', 'fpc0.pic0'], 'domain': 'englab.juniper.net', 'fqdn': None, 'hostname': None, 'hostname_info': {'node0': 'nfx250ha-c', 'node1': 'nfx250ha-d'}, 'ifd_style': 'CLASSIC', 'junos_info': {'node0': {'text': '20.2I-20200427.0.0631', 'object': junos.version_info(major=(20, 2), type=I, minor=-20200427, build=0)}, 'node1': {'text': '20.2I-20200427.0.0631', 'object': junos.version_info(major=(20, 2), type=I, minor=-20200427, build=0)}}, 'master': 'RE0', 'model': None, 'model_info': {'node0': 'NFX250_S2_10_T', 'node1': 'NFX250_S2_10_T'}, 'personality': None, 're_info': {'node0': {'0': {'status': 'OK', 'mastership_state': 'master', 'model': 'RE-NFX250-S2', 'last_reboot_reason': '0x1:power cycle/failure'}, 'default': {'status': 'OK', 'mastership_state': 'master', 'model': 'RE-NFX250-S2', 'last_reboot_reason': '0x1:power cycle/failure'}}, 'default': {'0': {'status': 'OK', 'mastership_state': 'master', 'model': 'RE-NFX250-S2', 'last_reboot_reason': '0x1:power cycle/failure'}, 'default': {'status': 'OK', 'mastership_state': 'master', 'model': 'RE-NFX250-S2', 'last_reboot_reason': '0x1:power cycle/failure'}}}, 're_master': {'node0': '0', 'default': '0'}, 'serialnumber': 'DD1917AF0016', 'srx_cluster': True, 'srx_cluster_id': '255', 'srx_cluster_redundancy_group': {'0': {'cluster_id': '255', 'node0': {'status': 'primary', 'failover_mode': 'no', 'priority': '1', 'preempt': 'no'}, 'failover_count': '1', 'node1': {'status': 'disabled', 'failover_mode': 'no', 'priority': '1', 'preempt': 'no'}}}, 'switch_style': 'VLAN_L2NG', 'vc_capable': False, 'vc_fabric': None, 'vc_master': None, 'vc_mode': None, '**_version': '0.0I0.0_**', 'version_RE0': '20.2I-20200427.0.0631', 'version_RE1': '20.2I-20200427.0.0631', 'version_info': junos.version_info(major=(0, 0), type=I, minor=0, build=0), 'virtual': None}. 

Here the version seems to be incorrect 0.0I0.0, as the right version is 20.3I. 

diff --git a/tests/unit/facts/test_current_re.py b/tests/unit/facts/test_current_re.py
index 1a112376..52d10a6b 100644
--- a/tests/unit/facts/test_current_re.py
+++ b/tests/unit/facts/test_current_re.py
@@ -43,6 +43,18 @@ class TestCurrentRe(unittest.TestCase):
         self.dev.facts._cache["srx_cluster_id"] = "15"
         self.assertEqual(self.dev.facts["current_re"], ["node0", "primary"])
 
+    @patch("jnpr.junos.Device.execute")
+    def test_current_re_fact_srx_cluster_primary_id_255(self, mock_execute):
+        mock_execute.side_effect = self._mock_manager_current_re_srx_primary
+        self.dev.facts._cache["srx_cluster_id"] = "255"
+        self.assertEqual(self.dev.facts["current_re"], ["node0", "primary"])
+
+    @patch("jnpr.junos.Device.execute")
+    def test_current_re_fact_srx_cluster_primary_id_31(self, mock_execute):
+        mock_execute.side_effect = self._mock_manager_current_re_srx_primary
+        self.dev.facts._cache["srx_cluster_id"] = "31"
+        self.assertEqual(self.dev.facts["current_re"], ["node0", "primary"])
+
     @patch("jnpr.junos.Device.execute")
     def test_current_re_fact_srx_cluster_secondary(self, mock_execute):
         mock_execute.side_effect = self._mock_manager_current_re_srx_secondary

pip install -e .[dev]
parse_log_pytest
requirements.txt
coverage mock nose pep8 pyflakes coveralls pytest
apt-get update apt-get install -y gcc libxslt1-dev libssl-dev libffi-dev
3.9
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
bcrypt==4.3.0
certifi==2025.1.31
cffi==1.17.1
charset-normalizer==3.4.1
coverage==7.8.0
coveralls==4.0.1
cryptography==44.0.2
docopt==0.6.2
exceptiongroup==1.2.2
future==1.0.0
idna==3.10
iniconfig==2.1.0
Jinja2==3.1.6
-e git+https://github.com/Juniper/py-junos-eznc.git@03a664fe4b11a509cc7f8cf936f1c9c5eb76ed3f#egg=junos_eznc
lxml==5.3.1
MarkupSafe==3.0.2
mock==5.2.0
ncclient==0.6.19
netaddr==1.3.0
nose==1.3.7
ntc_templates==7.8.0
packaging==24.2
paramiko==3.5.1
pep8==1.7.1
pluggy==1.5.0
pycparser==2.22
pyflakes==3.3.2
PyNaCl==1.5.0
pyparsing==3.2.3
pyserial==3.5
pytest==8.3.5
PyYAML==6.0.2
requests==2.32.3
scp==0.15.0
six==1.17.0
textfsm==1.1.3
tomli==2.2.1
transitions==0.9.2
urllib3==2.3.0
yamlordereddictloader==0.4.2

name: py-junos-eznc
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - bcrypt==4.3.0
      - certifi==2025.1.31
      - cffi==1.17.1
      - charset-normalizer==3.4.1
      - coverage==7.8.0
      - coveralls==4.0.1
      - cryptography==44.0.2
      - docopt==0.6.2
      - exceptiongroup==1.2.2
      - future==1.0.0
      - idna==3.10
      - iniconfig==2.1.0
      - jinja2==3.1.6
      - lxml==5.3.1
      - markupsafe==3.0.2
      - mock==5.2.0
      - ncclient==0.6.19
      - netaddr==1.3.0
      - nose==1.3.7
      - ntc-templates==7.8.0
      - packaging==24.2
      - paramiko==3.5.1
      - pep8==1.7.1
      - pluggy==1.5.0
      - pycparser==2.22
      - pyflakes==3.3.2
      - pynacl==1.5.0
      - pyparsing==3.2.3
      - pyserial==3.5
      - pytest==8.3.5
      - pyyaml==6.0.2
      - requests==2.32.3
      - scp==0.15.0
      - six==1.17.0
      - textfsm==1.1.3
      - tomli==2.2.1
      - transitions==0.9.2
      - urllib3==2.3.0
      - yamlordereddictloader==0.4.2
prefix: /opt/conda/envs/py-junos-eznc

tests/unit/facts/test_current_re.py::TestCurrentRe::test_current_re_fact_srx_cluster_primary_id_255 tests/unit/facts/test_current_re.py::TestCurrentRe::test_current_re_fact_srx_cluster_primary_id_31
tests/unit/facts/test_current_re.py::TestCurrentRe::test_current_re_fact tests/unit/facts/test_current_re.py::TestCurrentRe::test_current_re_fact_empty tests/unit/facts/test_current_re.py::TestCurrentRe::test_current_re_fact_jdm tests/unit/facts/test_current_re.py::TestCurrentRe::test_current_re_fact_rpc_error tests/unit/facts/test_current_re.py::TestCurrentRe::test_current_re_fact_srx_cluster_index_error tests/unit/facts/test_current_re.py::TestCurrentRe::test_current_re_fact_srx_cluster_primary tests/unit/facts/test_current_re.py::TestCurrentRe::test_current_re_fact_srx_cluster_secondary
lib/jnpr/junos/facts/current_re.py
lib/jnpr/junos/facts/current_re.py