Skip to content

Commit 4b9d3ef

Browse files
committed
Sync vrfs even when down
1 parent ea9c0b3 commit 4b9d3ef

8 files changed

Lines changed: 3183 additions & 4167 deletions

File tree

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:

nautobot_device_onboarding/diffsync/adapters/sync_devices_adapters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
"""DiffSync adapters."""
22

33
from collections import defaultdict
4-
from typing import DefaultDict, Dict, FrozenSet, Hashable, Tuple, Type
4+
from collections.abc import Hashable
5+
from typing import DefaultDict, Dict, FrozenSet, Tuple, Type
56

67
import diffsync
78
from django.contrib.contenttypes.models import ContentType

nautobot_device_onboarding/tests/fakenos/xe_vrfs.yaml

Lines changed: 850 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)