ipfabric_netbox 3.2.2__py3-none-any.whl → 3.2.3__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.

Potentially problematic release.


This version of ipfabric_netbox might be problematic. Click here for more details.

@@ -5,7 +5,7 @@ class NetboxIPFabricConfig(PluginConfig):
5
5
  name = "ipfabric_netbox"
6
6
  verbose_name = "NetBox IP Fabric SoT Plugin"
7
7
  description = "Sync IP Fabric into NetBox"
8
- version = "3.2.2"
8
+ version = "3.2.3"
9
9
  base_url = "ipfabric"
10
10
  min_version = "4.2.4"
11
11
 
@@ -334,15 +334,18 @@ class IPFabricSyncRunner(object):
334
334
  snapshot_id=self.settings["snapshot_id"], filters=site_filter
335
335
  )
336
336
 
337
+ inventory_item_filter = {
338
+ "and": [
339
+ {"sn": ["empty", False]},
340
+ {"name": ["empty", False]},
341
+ ]
342
+ }
343
+ if site_filter:
344
+ inventory_item_filter["and"].append(site_filter)
345
+
337
346
  data["inventoryitem"] = self.client.inventory.pn.all(
338
347
  snapshot_id=self.settings["snapshot_id"],
339
- filters={
340
- "and": [
341
- site_filter,
342
- {"sn": ["empty", False]},
343
- {"name": ["empty", False]},
344
- ]
345
- },
348
+ filters=inventory_item_filter,
346
349
  )
347
350
 
348
351
  data["vlan"] = self.client.technology.vlans.site_summary.all(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ipfabric_netbox
3
- Version: 3.2.2
3
+ Version: 3.2.3
4
4
  Summary: NetBox plugin to sync IP Fabric data into NetBox
5
5
  License: MIT
6
6
  Keywords: netbox,ipfabric,plugin,sync
@@ -1,4 +1,4 @@
1
- ipfabric_netbox/__init__.py,sha256=Hx79dSbjd4DIMkPCRqBBdEDb9t9MAVvHEk9TZHXAw3c,315
1
+ ipfabric_netbox/__init__.py,sha256=eNxGpPTl1qv9JUDfcIKtbOHUmz68GXvZ5nirnpoLL2U,315
2
2
  ipfabric_netbox/api/__init__.py,sha256=DOkvDAI4BoNgdCiNxfseeExEHyOrK8weG-LvjPRyK8A,101
3
3
  ipfabric_netbox/api/nested_serializers.py,sha256=JwIlFpOHeiMB7F-sC0gx1f6qdNevS8NsXTUEHlVZeRs,2719
4
4
  ipfabric_netbox/api/serializers.py,sha256=bTR3AJ81Q8HZI3iWLPc1tndGqD0erAbAD9hKLI4DTYY,4341
@@ -55,11 +55,11 @@ ipfabric_netbox/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
55
55
  ipfabric_netbox/tests/test_models.py,sha256=syndh1M3uiZIokn_MJUHfU5jNNMUDPQ5sm8iK-gu1Is,15192
56
56
  ipfabric_netbox/urls.py,sha256=V98K_JxHaJAgDbo-DiMj-5FQIIposLMLJCPw3dtREWU,4430
57
57
  ipfabric_netbox/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
- ipfabric_netbox/utilities/ipfutils.py,sha256=c9a_3mQ_GVksYqsCIGJSBnzOVKX1V21Jb9lrU2ASadE,27306
58
+ ipfabric_netbox/utilities/ipfutils.py,sha256=v-9GUfvK0SEeyl7PBHzMqIKl1_wWmy38y_KoBS9K-9o,27409
59
59
  ipfabric_netbox/utilities/logging.py,sha256=GYknjocMN6LQ2873_az3y0RKm29TCXaWviUIIneH-x0,3445
60
60
  ipfabric_netbox/utilities/nbutils.py,sha256=kFBEiJOGvr_49hJWCS2duXojx2-A9kVk0Xp_vj0ohfs,2641
61
61
  ipfabric_netbox/utilities/transform_map.py,sha256=g0elxtwSRJvu0ZRZHyMf4Y9R4wiQ-h2o9Er8gxUQ-Bs,2108
62
62
  ipfabric_netbox/views.py,sha256=K2iKh6i8kv88c7gVh6wW7d8Adcso24ZE8m6gVUiNZSw,28285
63
- ipfabric_netbox-3.2.2.dist-info/METADATA,sha256=sFnkbdFcINTc3j0ZYZdTWqQVPzFdfnPXyGEvVhf5-3Y,4947
64
- ipfabric_netbox-3.2.2.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
65
- ipfabric_netbox-3.2.2.dist-info/RECORD,,
63
+ ipfabric_netbox-3.2.3.dist-info/METADATA,sha256=erp3UN8NoPI3LSLUSnhRTsAgl71SN8icknp5SYZKleM,4947
64
+ ipfabric_netbox-3.2.3.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
65
+ ipfabric_netbox-3.2.3.dist-info/RECORD,,