Skip to content

Commit

Permalink
fixed issue #1135
Browse files Browse the repository at this point in the history
  • Loading branch information
chidanandpujar committed Nov 23, 2021
1 parent 9b6a706 commit 54620d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/jnpr/junos/facts/current_re.py
Expand Up @@ -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.<cluster_id_octet>.0.1
# node1 will have an IP of
Expand Down

0 comments on commit 54620d9

Please sign in to comment.