Skip to content

Commit

Permalink
Merge pull request #1290 from napalm-automation/xr-xpath-list-err
Browse files Browse the repository at this point in the history
Look up the KeepAliveTime and HoldTime keys in the VRF tree
  • Loading branch information
mirceaulinic committed Sep 10, 2020
2 parents 23b9356 + 7f7427a commit 49554bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napalm/iosxr/iosxr.py
Expand Up @@ -1170,13 +1170,13 @@ def get_bgp_neighbors_detail(self, neighbor_address=""):
vrf_keepalive = napalm.base.helpers.convert(
int,
napalm.base.helpers.find_txt(
instance_active_list, "GlobalProcessInfo/VRF/KeepAliveTime"
vrf_tree, "GlobalProcessInfo/VRF/KeepAliveTime"
),
)
vrf_holdtime = napalm.base.helpers.convert(
int,
napalm.base.helpers.find_txt(
instance_active_list, "GlobalProcessInfo/VRF/HoldTime"
vrf_tree, "GlobalProcessInfo/VRF/HoldTime"
),
)
if vrf_name not in bgp_neighbors_detail.keys():
Expand Down

0 comments on commit 49554bb

Please sign in to comment.