ipfabric_netbox 4.3.0b5__py3-none-any.whl → 4.3.0b7__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/api/serializers.py +5 -0
- ipfabric_netbox/api/views.py +47 -0
- ipfabric_netbox/choices.py +2 -2
- ipfabric_netbox/forms.py +137 -4
- ipfabric_netbox/models.py +6 -1
- ipfabric_netbox/tables.py +2 -0
- ipfabric_netbox/templates/ipfabric_netbox/ipfabricsync.html +1 -1
- ipfabric_netbox/tests/api/test_api.py +149 -22
- ipfabric_netbox/tests/test_views.py +214 -158
- ipfabric_netbox/urls.py +24 -108
- ipfabric_netbox/views.py +293 -132
- {ipfabric_netbox-4.3.0b5.dist-info → ipfabric_netbox-4.3.0b7.dist-info}/METADATA +1 -1
- {ipfabric_netbox-4.3.0b5.dist-info → ipfabric_netbox-4.3.0b7.dist-info}/RECORD +15 -15
- {ipfabric_netbox-4.3.0b5.dist-info → ipfabric_netbox-4.3.0b7.dist-info}/WHEEL +0 -0
ipfabric_netbox/urls.py
CHANGED
|
@@ -2,78 +2,45 @@ from django.urls import include
|
|
|
2
2
|
from django.urls import path
|
|
3
3
|
from utilities.urls import get_model_urls
|
|
4
4
|
|
|
5
|
-
from . import views
|
|
5
|
+
from . import views # noqa: F401
|
|
6
|
+
|
|
7
|
+
# We need the blank views import so the views are already registered
|
|
8
|
+
|
|
6
9
|
|
|
7
10
|
urlpatterns = (
|
|
8
11
|
# Source
|
|
9
|
-
path("source/", views.IPFabricSourceListView.as_view(), name="ipfabricsource_list"),
|
|
10
12
|
path(
|
|
11
|
-
"source/
|
|
12
|
-
|
|
13
|
-
path(
|
|
14
|
-
"source/delete/",
|
|
15
|
-
views.IPFabricSourceBulkDeleteView.as_view(),
|
|
16
|
-
name="ipfabricsource_bulk_delete",
|
|
13
|
+
"source/",
|
|
14
|
+
include(get_model_urls("ipfabric_netbox", "ipfabricsource", detail=False)),
|
|
17
15
|
),
|
|
18
16
|
path(
|
|
19
17
|
"source/<int:pk>/", include(get_model_urls("ipfabric_netbox", "ipfabricsource"))
|
|
20
18
|
),
|
|
21
|
-
path(
|
|
22
|
-
"source/<int:pk>/delete/",
|
|
23
|
-
views.IPFabricSourceDeleteView.as_view(),
|
|
24
|
-
name="ipfabricsource_delete",
|
|
25
|
-
),
|
|
26
19
|
# Snapshot
|
|
27
20
|
path(
|
|
28
21
|
"snapshot/",
|
|
29
|
-
|
|
30
|
-
name="ipfabricsnapshot_list",
|
|
31
|
-
),
|
|
32
|
-
path(
|
|
33
|
-
"snapshot/delete/",
|
|
34
|
-
views.IPFabricSnapshotBulkDeleteView.as_view(),
|
|
35
|
-
name="ipfabricsnapshot_bulk_delete",
|
|
22
|
+
include(get_model_urls("ipfabric_netbox", "ipfabricsnapshot", detail=False)),
|
|
36
23
|
),
|
|
37
24
|
path(
|
|
38
25
|
"snapshot/<int:pk>/",
|
|
39
26
|
include(get_model_urls("ipfabric_netbox", "ipfabricsnapshot")),
|
|
40
27
|
),
|
|
41
|
-
path(
|
|
42
|
-
"snapshot/<int:pk>/delete/",
|
|
43
|
-
views.IPFabricSnapshotDeleteView.as_view(),
|
|
44
|
-
name="ipfabricsnapshot_delete",
|
|
45
|
-
),
|
|
46
28
|
# Snapshot Data
|
|
47
29
|
path(
|
|
48
|
-
"data/
|
|
49
|
-
|
|
50
|
-
name="ipfabricdata_bulk_delete",
|
|
30
|
+
"data/",
|
|
31
|
+
include(get_model_urls("ipfabric_netbox", "ipfabricdata", detail=False)),
|
|
51
32
|
),
|
|
52
33
|
path("data/<int:pk>/", include(get_model_urls("ipfabric_netbox", "ipfabricdata"))),
|
|
53
|
-
path(
|
|
54
|
-
"data/<int:pk>/delete",
|
|
55
|
-
views.IPFabricSnapshotDataDeleteView.as_view(),
|
|
56
|
-
name="ipfabricdata_delete",
|
|
57
|
-
),
|
|
58
34
|
# Sync
|
|
59
|
-
path("sync/", views.IPFabricSyncListView.as_view(), name="ipfabricsync_list"),
|
|
60
|
-
path("sync/add/", views.IPFabricSyncEditView.as_view(), name="ipfabricsync_add"),
|
|
61
35
|
path(
|
|
62
|
-
"sync/
|
|
63
|
-
|
|
64
|
-
name="ipfabricsync_bulk_delete",
|
|
36
|
+
"sync/",
|
|
37
|
+
include(get_model_urls("ipfabric_netbox", "ipfabricsync", detail=False)),
|
|
65
38
|
),
|
|
66
39
|
path("sync/<int:pk>/", include(get_model_urls("ipfabric_netbox", "ipfabricsync"))),
|
|
67
|
-
path(
|
|
68
|
-
"sync/<int:pk>/delete/",
|
|
69
|
-
views.IPFabricSyncDeleteView.as_view(),
|
|
70
|
-
name="ipfabricsync_delete",
|
|
71
|
-
),
|
|
72
40
|
# Ingestion
|
|
73
41
|
path(
|
|
74
42
|
"ingestion/",
|
|
75
|
-
|
|
76
|
-
name="ipfabricingestion_list",
|
|
43
|
+
include(get_model_urls("ipfabric_netbox", "ipfabricingestion", detail=False)),
|
|
77
44
|
),
|
|
78
45
|
path(
|
|
79
46
|
"ingestion/<int:pk>/",
|
|
@@ -82,96 +49,45 @@ urlpatterns = (
|
|
|
82
49
|
# Transform Map Group
|
|
83
50
|
path(
|
|
84
51
|
"transform-map-group/",
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
path(
|
|
89
|
-
"transform-map-group/add",
|
|
90
|
-
views.IPFabricTransformMapGroupEditView.as_view(),
|
|
91
|
-
name="ipfabrictransformmapgroup_add",
|
|
92
|
-
),
|
|
93
|
-
path(
|
|
94
|
-
"transform-map-group/delete/",
|
|
95
|
-
views.IPFabricTransformMapGroupBulkDeleteView.as_view(),
|
|
96
|
-
name="ipfabrictransformmapgroup_bulk_delete",
|
|
52
|
+
include(
|
|
53
|
+
get_model_urls("ipfabric_netbox", "ipfabrictransformmapgroup", detail=False)
|
|
54
|
+
),
|
|
97
55
|
),
|
|
98
56
|
path(
|
|
99
57
|
"transform-map-group/<int:pk>/",
|
|
100
58
|
include(get_model_urls("ipfabric_netbox", "ipfabrictransformmapgroup")),
|
|
101
59
|
),
|
|
102
|
-
path(
|
|
103
|
-
"transform-map-group/<int:pk>/delete/",
|
|
104
|
-
views.IPFabricTransformMapGroupDeleteView.as_view(),
|
|
105
|
-
name="ipfabrictransformmapgroup_delete",
|
|
106
|
-
),
|
|
107
60
|
# Transform Map
|
|
108
61
|
path(
|
|
109
62
|
"transform-map/",
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
path(
|
|
114
|
-
"transform-map/restore/",
|
|
115
|
-
views.IPFabricTransformMapRestoreView.as_view(),
|
|
116
|
-
name="ipfabrictransformmap_restore",
|
|
117
|
-
),
|
|
118
|
-
path(
|
|
119
|
-
"transform-map/add",
|
|
120
|
-
views.IPFabricTransformMapEditView.as_view(),
|
|
121
|
-
name="ipfabrictransformmap_add",
|
|
122
|
-
),
|
|
123
|
-
path(
|
|
124
|
-
"transform-map/delete/",
|
|
125
|
-
views.IPFabricTransformMapBulkDeleteView.as_view(),
|
|
126
|
-
name="ipfabrictransformmap_bulk_delete",
|
|
63
|
+
include(
|
|
64
|
+
get_model_urls("ipfabric_netbox", "ipfabrictransformmap", detail=False)
|
|
65
|
+
),
|
|
127
66
|
),
|
|
128
67
|
path(
|
|
129
68
|
"transform-map/<int:pk>/",
|
|
130
69
|
include(get_model_urls("ipfabric_netbox", "ipfabrictransformmap")),
|
|
131
70
|
),
|
|
132
|
-
path(
|
|
133
|
-
"transform-map/<int:pk>/delete/",
|
|
134
|
-
views.IPFabricTransformMapDeleteView.as_view(),
|
|
135
|
-
name="ipfabrictransformmap_delete",
|
|
136
|
-
),
|
|
137
71
|
# Transform field
|
|
138
72
|
path(
|
|
139
73
|
"transform-field/",
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
path(
|
|
144
|
-
"transform-field/add/",
|
|
145
|
-
views.IPFabricTransformFieldEditView.as_view(),
|
|
146
|
-
name="ipfabrictransformfield_add",
|
|
74
|
+
include(
|
|
75
|
+
get_model_urls("ipfabric_netbox", "ipfabrictransformfield", detail=False)
|
|
76
|
+
),
|
|
147
77
|
),
|
|
148
78
|
path(
|
|
149
79
|
"transform-field/<int:pk>/",
|
|
150
80
|
include(get_model_urls("ipfabric_netbox", "ipfabrictransformfield")),
|
|
151
81
|
),
|
|
152
|
-
path(
|
|
153
|
-
"transform-field/<int:pk>/delete/",
|
|
154
|
-
views.IPFabricTransformFieldDeleteView.as_view(),
|
|
155
|
-
name="ipfabrictransformfield_delete",
|
|
156
|
-
),
|
|
157
82
|
# Relationship Field
|
|
158
83
|
path(
|
|
159
84
|
"relationship-field/",
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
path(
|
|
164
|
-
"relationship-field/add/",
|
|
165
|
-
views.IPFabricRelationshipFieldEditView.as_view(),
|
|
166
|
-
name="ipfabricrelationshipfield_add",
|
|
85
|
+
include(
|
|
86
|
+
get_model_urls("ipfabric_netbox", "ipfabricrelationshipfield", detail=False)
|
|
87
|
+
),
|
|
167
88
|
),
|
|
168
89
|
path(
|
|
169
90
|
"relationship-field/<int:pk>/",
|
|
170
91
|
include(get_model_urls("ipfabric_netbox", "ipfabricrelationshipfield")),
|
|
171
92
|
),
|
|
172
|
-
path(
|
|
173
|
-
"relationship-field/<int:pk>/delete/",
|
|
174
|
-
views.IPFabricRelationshipFieldDeleteView.as_view(),
|
|
175
|
-
name="ipfabricrelationshipfield_delete",
|
|
176
|
-
),
|
|
177
93
|
)
|