nornir-collection 0.0.16__py3-none-any.whl → 0.0.18__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nornir_collection/netbox/update_prefixes_ip_addresses.py +8 -4
- {nornir_collection-0.0.16.dist-info → nornir_collection-0.0.18.dist-info}/METADATA +1 -1
- {nornir_collection-0.0.16.dist-info → nornir_collection-0.0.18.dist-info}/RECORD +6 -6
- {nornir_collection-0.0.16.dist-info → nornir_collection-0.0.18.dist-info}/LICENSE +0 -0
- {nornir_collection-0.0.16.dist-info → nornir_collection-0.0.18.dist-info}/WHEEL +0 -0
- {nornir_collection-0.0.16.dist-info → nornir_collection-0.0.18.dist-info}/top_level.txt +0 -0
@@ -312,7 +312,7 @@ def get_ipfabric_data_for_prefix(ipf: IPFClient, prefix: dict, result: list) ->
|
|
312
312
|
prefixlen = ipaddress.ip_network(prefix["prefix"]).prefixlen
|
313
313
|
# Get all ip-addresses of the prefix from the IP-Fabric technology arp table
|
314
314
|
# Remove duplicate ip-addresses as the arp table can contain multiple entries for the same ip-address
|
315
|
-
filters = {"ip": ["cidr", prefix["prefix"]]}
|
315
|
+
filters = {"ip": ["cidr", prefix["prefix"]], "proxy": ["eq", False]}
|
316
316
|
arp_ip_list = list(set([x["ip"] for x in ipf.technology.addressing.arp_table.all(filters=filters)]))
|
317
317
|
# Get all ip-addresses of the prefix from the IP-Fabric inventory managed ipv4 table
|
318
318
|
managed_ipv4_ip_list = list(
|
@@ -1038,9 +1038,13 @@ def main(nr_config: str, nmap_scan: bool = False, overwrite_active: list[str] =
|
|
1038
1038
|
# Load Active and Inventory NetBox Prefixes from all Tenants (except marked utilized)
|
1039
1039
|
# These prefixes will be updated with input from IP-Fabric
|
1040
1040
|
nb_active_inventory_t3_t4_prefixes = load_netbox_data(
|
1041
|
-
task_text="Load Active
|
1041
|
+
task_text="Load Active OOB/T1/T2/T3/T4 NetBox Prefixes",
|
1042
1042
|
nb_api_url=f"{nb_url}/api/ipam/prefixes/",
|
1043
|
-
query={
|
1043
|
+
query={
|
1044
|
+
"status": "active",
|
1045
|
+
"tenant": ["none", "oob", "tier-1", "tier-2", "tier-3", "tier-4"],
|
1046
|
+
"mark_utilized": "false",
|
1047
|
+
},
|
1044
1048
|
)
|
1045
1049
|
|
1046
1050
|
# Load NetBox Non-Container Prefixes
|
@@ -1080,7 +1084,7 @@ def main(nr_config: str, nmap_scan: bool = False, overwrite_active: list[str] =
|
|
1080
1084
|
#### IP-Fabric Update Active & Inventory NetBox Prefixes IP-Addresses ###################################
|
1081
1085
|
|
1082
1086
|
# Set the task title
|
1083
|
-
title = "IP-Fabric Update Active
|
1087
|
+
title = "IP-Fabric Update Active OOB/T1/T2/T3/T4 NetBox Prefixes IP-Addresses"
|
1084
1088
|
|
1085
1089
|
# Run the thread pool to update all NetBox IP-Addresses Status and DNS-Name
|
1086
1090
|
# 1. arg is the input type ('nmap' or 'ip-fabric')
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: nornir-collection
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.18
|
4
4
|
Summary: Nornir-Collection contains network automation functions and complete IaC workflows with Nornir and other python libraries. It contains Nornir tasks and general functions in Nornir style.
|
5
5
|
Author: Willi Kubny
|
6
6
|
Author-email: willi.kubny@gmail.ch
|
@@ -41,7 +41,7 @@ nornir_collection/netbox/sync_datasource.py,sha256=eEsgwy_arIPbA-ObqqzTNdU9aiP80
|
|
41
41
|
nornir_collection/netbox/update_cisco_inventory_data.py,sha256=Aq4VGvAIiBhOCsSOF-wBUrpYtBXR8HwR3NCWEeM4d0g,6426
|
42
42
|
nornir_collection/netbox/update_cisco_support_plugin_data.py,sha256=H8SfqESad64LrZrsWOaICHKj122sgu96dK9RcbvtzGM,13896
|
43
43
|
nornir_collection/netbox/update_fortinet_inventory_data.py,sha256=ltwkE_bFljRUR4aeOxorChCsHdZciD1TqvoPnWTUIUg,6367
|
44
|
-
nornir_collection/netbox/update_prefixes_ip_addresses.py,sha256=
|
44
|
+
nornir_collection/netbox/update_prefixes_ip_addresses.py,sha256=Nk_F05mJome4FYj2nbtjl6b1TpU051eMj8U-dM0NMcY,47736
|
45
45
|
nornir_collection/netbox/update_purestorage_inventory_data.py,sha256=cGZNMTZWJ0wu1BYdE92EVN-C-oLMJHxaKi_-1cMg0Ow,5368
|
46
46
|
nornir_collection/netbox/utils.py,sha256=mCV7QfLeR6kKurZVpMrHucIoru759RiwzE4NGEx91kI,12140
|
47
47
|
nornir_collection/netbox/verify_device_primary_ip.py,sha256=6UCdZaZxhV4v8KqpjSpE9c7jaxIAF2krrknrrRj1AvM,8690
|
@@ -52,8 +52,8 @@ nornir_collection/nornir_plugins/inventory/staggered_yaml.py,sha256=nBvUFq7U5zVT
|
|
52
52
|
nornir_collection/nornir_plugins/inventory/utils.py,sha256=mxIlKK-4PHqCnFKn7Oozu1RW_JB5z1TgEYc-ave70nE,11822
|
53
53
|
nornir_collection/purestorage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
54
54
|
nornir_collection/purestorage/utils.py,sha256=TqU2sKz0ENnmSDEBcSvXPnVkI1DVHOogI68D7l32g7I,1730
|
55
|
-
nornir_collection-0.0.
|
56
|
-
nornir_collection-0.0.
|
57
|
-
nornir_collection-0.0.
|
58
|
-
nornir_collection-0.0.
|
59
|
-
nornir_collection-0.0.
|
55
|
+
nornir_collection-0.0.18.dist-info/LICENSE,sha256=bOPVh1OVNwz2tCjkLaChWT6AoXdtqye3aua5l0tgYJo,1068
|
56
|
+
nornir_collection-0.0.18.dist-info/METADATA,sha256=SUHoYNDZz7YAPMtqID53iObr1mobwR0yEWlv171yP1g,7169
|
57
|
+
nornir_collection-0.0.18.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
58
|
+
nornir_collection-0.0.18.dist-info/top_level.txt,sha256=OyCzPWABf-D0AOHm9ihrwdk5eq200BnKna6gIDspwsE,18
|
59
|
+
nornir_collection-0.0.18.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|