From 54620d929c4f8d50bf5b0da40e9516297c655c5d Mon Sep 17 00:00:00 2001 From: chidanandpujar Date: Tue, 23 Nov 2021 17:22:58 +0530 Subject: [PATCH] fixed issue #1135 --- lib/jnpr/junos/facts/current_re.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/jnpr/junos/facts/current_re.py b/lib/jnpr/junos/facts/current_re.py index 89dc960ad..d6a4ef7c1 100644 --- a/lib/jnpr/junos/facts/current_re.py +++ b/lib/jnpr/junos/facts/current_re.py @@ -68,6 +68,10 @@ def get_facts(device): cluster_id_octet = str( (int(device.facts["srx_cluster_id"]) & 0x000F) << 4 ) + if cluster_id_octet == "0": + cluster_id_octet = str( + device.facts["srx_cluster_id"] + ) # node0 will have an IP of # 129..0.1 # node1 will have an IP of