Skip to content

Commit 03e9a23

Browse files
authored
Fix VRF on down Interface - Cisco XE (#496)
1 parent c6cbd59 commit 03e9a23

File tree

7 files changed

+987
-1975
lines changed

7 files changed

+987
-1975
lines changed

changes/477.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed VRFs not syncing on Cisco XE interfaces that are down.

nautobot_device_onboarding/command_mappers/cisco_xe.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ sync_network_data:
102102
iterable_type: "str"
103103
interfaces__vrf:
104104
commands:
105-
- command: "show ip interface"
105+
- command: "show ip vrf interfaces"
106106
parser: "textfsm"
107-
jpath: "[?interface=='{{ current_key }}'].{name:vrf}"
107+
jpath: "[?interface=='{{ current_key | abbreviated_interface_name(addl_reverse_map={'VirtualPortGroup': 'Vi'}) }}'].{name:vrf}"
108108
post_processor: "{% if obj | length > 0 %}{{ obj[0] | key_exist_or_default('name') | tojson }}{% else %}{{ obj }}{% endif %}"
109109
iterable_type: "dict"
110110
interfaces__tagged_vlans:

0 commit comments

Comments
 (0)