ipfabric_netbox 4.2.1b3__py3-none-any.whl → 4.2.2b1__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.
- ipfabric_netbox/__init__.py +1 -1
- ipfabric_netbox/views.py +5 -11
- {ipfabric_netbox-4.2.1b3.dist-info → ipfabric_netbox-4.2.2b1.dist-info}/METADATA +3 -2
- {ipfabric_netbox-4.2.1b3.dist-info → ipfabric_netbox-4.2.2b1.dist-info}/RECORD +5 -5
- {ipfabric_netbox-4.2.1b3.dist-info → ipfabric_netbox-4.2.2b1.dist-info}/WHEEL +1 -1
ipfabric_netbox/__init__.py
CHANGED
ipfabric_netbox/views.py
CHANGED
|
@@ -479,21 +479,15 @@ class IPFabricSourceEditView(generic.ObjectEditView):
|
|
|
479
479
|
|
|
480
480
|
|
|
481
481
|
@register_model_view(IPFabricSource)
|
|
482
|
-
class IPFabricSourceView(generic.ObjectView):
|
|
482
|
+
class IPFabricSourceView(GetRelatedModelsMixin, generic.ObjectView):
|
|
483
483
|
queryset = IPFabricSource.objects.all()
|
|
484
484
|
|
|
485
485
|
def get_extra_context(self, request, instance):
|
|
486
|
-
related_models = (
|
|
487
|
-
(
|
|
488
|
-
IPFabricSnapshot.objects.restrict(request.user, "view").filter(
|
|
489
|
-
source=instance
|
|
490
|
-
),
|
|
491
|
-
"source_id",
|
|
492
|
-
),
|
|
493
|
-
)
|
|
494
|
-
|
|
495
486
|
job = instance.jobs.order_by("id").last()
|
|
496
|
-
data = {
|
|
487
|
+
data = {
|
|
488
|
+
"related_models": self.get_related_models(request, instance),
|
|
489
|
+
"job": job,
|
|
490
|
+
}
|
|
497
491
|
if job:
|
|
498
492
|
data["job_results"] = job.data
|
|
499
493
|
return data
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: ipfabric_netbox
|
|
3
|
-
Version: 4.2.
|
|
3
|
+
Version: 4.2.2b1
|
|
4
4
|
Summary: NetBox plugin to sync IP Fabric data into NetBox
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: netbox,ipfabric,plugin,sync
|
|
@@ -14,6 +14,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
18
|
Provides-Extra: ipfabric-6-10
|
|
18
19
|
Provides-Extra: ipfabric-7-0
|
|
19
20
|
Provides-Extra: ipfabric-7-2
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
ipfabric_netbox/__init__.py,sha256=
|
|
1
|
+
ipfabric_netbox/__init__.py,sha256=MBjOH1k9VEDfKASd99apzOz3HzJWEt2AQDcNbcaxI_8,674
|
|
2
2
|
ipfabric_netbox/api/__init__.py,sha256=XRclTGWVR0ZhAAwgYul5Wm_loug5_hUjEumbLQEwKYM,47
|
|
3
3
|
ipfabric_netbox/api/serializers.py,sha256=7cmVsIzGzz9u6htLKizLr2Ar0OC7uV8rMX3U7EzRmG4,6482
|
|
4
4
|
ipfabric_netbox/api/urls.py,sha256=1fXXVTxNY5E64Nfz6b7zXD9bZI3FcefuxAWKMe0w_QU,1240
|
|
@@ -79,7 +79,7 @@ ipfabric_netbox/utilities/ipfutils.py,sha256=wFmL5oriuF-is1ZlrIcLmoeYUY5ih-CA9we
|
|
|
79
79
|
ipfabric_netbox/utilities/logging.py,sha256=GYknjocMN6LQ2873_az3y0RKm29TCXaWviUIIneH-x0,3445
|
|
80
80
|
ipfabric_netbox/utilities/nbutils.py,sha256=kFBEiJOGvr_49hJWCS2duXojx2-A9kVk0Xp_vj0ohfs,2641
|
|
81
81
|
ipfabric_netbox/utilities/transform_map.py,sha256=QotbGc2TksINJrb62STgAigpC5Nsgi5umYHu_0rZd8k,2204
|
|
82
|
-
ipfabric_netbox/views.py,sha256=
|
|
83
|
-
ipfabric_netbox-4.2.
|
|
84
|
-
ipfabric_netbox-4.2.
|
|
85
|
-
ipfabric_netbox-4.2.
|
|
82
|
+
ipfabric_netbox/views.py,sha256=CzOxq1IXkUtZFQccC5WkwGOb9mE6tlbbBNTN8kOlqCQ,36662
|
|
83
|
+
ipfabric_netbox-4.2.2b1.dist-info/METADATA,sha256=XOEtfiqXpPBZRVhu_8O0oF5uAhUDgPF1EZMNPAbJzFo,4689
|
|
84
|
+
ipfabric_netbox-4.2.2b1.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
|
|
85
|
+
ipfabric_netbox-4.2.2b1.dist-info/RECORD,,
|