ipfabric_netbox 3.1.2__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 +42 -0
- ipfabric_netbox/api/__init__.py +2 -0
- ipfabric_netbox/api/nested_serializers.py +99 -0
- ipfabric_netbox/api/serializers.py +160 -0
- ipfabric_netbox/api/urls.py +21 -0
- ipfabric_netbox/api/views.py +111 -0
- ipfabric_netbox/choices.py +226 -0
- ipfabric_netbox/filtersets.py +125 -0
- ipfabric_netbox/forms.py +1063 -0
- ipfabric_netbox/jobs.py +95 -0
- ipfabric_netbox/migrations/0001_initial.py +342 -0
- ipfabric_netbox/migrations/0002_ipfabricsnapshot_status.py +17 -0
- ipfabric_netbox/migrations/0003_ipfabricsource_type_and_more.py +49 -0
- ipfabric_netbox/migrations/0004_ipfabricsync_auto_merge.py +17 -0
- ipfabric_netbox/migrations/0005_alter_ipfabricrelationshipfield_source_model_and_more.py +64 -0
- ipfabric_netbox/migrations/0006_alter_ipfabrictransformmap_target_model.py +48 -0
- ipfabric_netbox/migrations/__init__.py +0 -0
- ipfabric_netbox/models.py +874 -0
- ipfabric_netbox/navigation.py +62 -0
- ipfabric_netbox/signals.py +68 -0
- ipfabric_netbox/tables.py +208 -0
- ipfabric_netbox/template_content.py +13 -0
- ipfabric_netbox/templates/ipfabric_netbox/inc/diff.html +72 -0
- ipfabric_netbox/templates/ipfabric_netbox/inc/json.html +20 -0
- ipfabric_netbox/templates/ipfabric_netbox/inc/logs_pending.html +6 -0
- ipfabric_netbox/templates/ipfabric_netbox/inc/merge_form.html +22 -0
- ipfabric_netbox/templates/ipfabric_netbox/inc/site_topology_button.html +70 -0
- ipfabric_netbox/templates/ipfabric_netbox/inc/site_topology_modal.html +61 -0
- ipfabric_netbox/templates/ipfabric_netbox/inc/snapshotdata.html +60 -0
- ipfabric_netbox/templates/ipfabric_netbox/inc/sync_delete.html +19 -0
- ipfabric_netbox/templates/ipfabric_netbox/inc/transform_map_field_map.html +11 -0
- ipfabric_netbox/templates/ipfabric_netbox/inc/transform_map_relationship_map.html +11 -0
- ipfabric_netbox/templates/ipfabric_netbox/ipfabric_table.html +55 -0
- ipfabric_netbox/templates/ipfabric_netbox/ipfabricbranch.html +141 -0
- ipfabric_netbox/templates/ipfabric_netbox/ipfabricsnapshot.html +105 -0
- ipfabric_netbox/templates/ipfabric_netbox/ipfabricsource.html +111 -0
- ipfabric_netbox/templates/ipfabric_netbox/ipfabricsync.html +103 -0
- ipfabric_netbox/templates/ipfabric_netbox/ipfabrictransformmap.html +41 -0
- ipfabric_netbox/templates/ipfabric_netbox/ipfabrictransformmap_list.html +17 -0
- ipfabric_netbox/templates/ipfabric_netbox/ipfabrictransformmap_restore.html +59 -0
- ipfabric_netbox/templates/ipfabric_netbox/partials/branch_all.html +10 -0
- ipfabric_netbox/templates/ipfabric_netbox/partials/branch_progress.html +19 -0
- ipfabric_netbox/templates/ipfabric_netbox/partials/branch_status.html +1 -0
- ipfabric_netbox/templates/ipfabric_netbox/partials/job_logs.html +53 -0
- ipfabric_netbox/templates/ipfabric_netbox/partials/sync_last_branch.html +1 -0
- ipfabric_netbox/templates/ipfabric_netbox/sync_list.html +126 -0
- ipfabric_netbox/templates/static/ipfabric_netbox/css/rack.css +9 -0
- ipfabric_netbox/tests/__init__.py +0 -0
- ipfabric_netbox/tests/test_models.py +1340 -0
- ipfabric_netbox/urls.py +141 -0
- ipfabric_netbox/utilities/__init__.py +0 -0
- ipfabric_netbox/utilities/ipfutils.py +591 -0
- ipfabric_netbox/utilities/logging.py +93 -0
- ipfabric_netbox/utilities/nbutils.py +105 -0
- ipfabric_netbox/utilities/transform_map.py +35 -0
- ipfabric_netbox/views.py +845 -0
- ipfabric_netbox-3.1.2.dist-info/METADATA +88 -0
- ipfabric_netbox-3.1.2.dist-info/RECORD +59 -0
- ipfabric_netbox-3.1.2.dist-info/WHEEL +4 -0
ipfabric_netbox/urls.py
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
from django.urls import include
|
|
2
|
+
from django.urls import path
|
|
3
|
+
from utilities.urls import get_model_urls
|
|
4
|
+
|
|
5
|
+
from . import views
|
|
6
|
+
|
|
7
|
+
urlpatterns = (
|
|
8
|
+
# Source
|
|
9
|
+
path("source/", views.IPFabricSourceListView.as_view(), name="ipfabricsource_list"),
|
|
10
|
+
path(
|
|
11
|
+
"source/add/", views.IPFabricSourceEditView.as_view(), name="ipfabricsource_add"
|
|
12
|
+
),
|
|
13
|
+
path(
|
|
14
|
+
"source/delete/",
|
|
15
|
+
views.IPFabricSourceBulkDeleteView.as_view(),
|
|
16
|
+
name="ipfabricsource_bulk_delete",
|
|
17
|
+
),
|
|
18
|
+
path(
|
|
19
|
+
"source/<int:pk>/delete/",
|
|
20
|
+
views.IPFabricSourceDeleteView.as_view(),
|
|
21
|
+
name="ipfabricsource_delete",
|
|
22
|
+
),
|
|
23
|
+
path(
|
|
24
|
+
"source/<int:pk>/", include(get_model_urls("ipfabric_netbox", "ipfabricsource"))
|
|
25
|
+
),
|
|
26
|
+
path(
|
|
27
|
+
"source/delete/",
|
|
28
|
+
views.IPFabricSyncBulkDeleteView.as_view(),
|
|
29
|
+
name="ipfabricsync_bulk_delete",
|
|
30
|
+
),
|
|
31
|
+
# Snapshot
|
|
32
|
+
path(
|
|
33
|
+
"snapshot/",
|
|
34
|
+
views.IPFabricSnapshotListView.as_view(),
|
|
35
|
+
name="ipfabricsnapshot_list",
|
|
36
|
+
),
|
|
37
|
+
path(
|
|
38
|
+
"snapshot/delete/",
|
|
39
|
+
views.IPFabricSnapshotBulkDeleteView.as_view(),
|
|
40
|
+
name="ipfabricsnapshot_bulk_delete",
|
|
41
|
+
),
|
|
42
|
+
path(
|
|
43
|
+
"snapshot/<int:pk>/",
|
|
44
|
+
include(get_model_urls("ipfabric_netbox", "ipfabricsnapshot")),
|
|
45
|
+
),
|
|
46
|
+
path(
|
|
47
|
+
"snapshot/<int:pk>/delete/",
|
|
48
|
+
views.IPFabricSnapshotDeleteView.as_view(),
|
|
49
|
+
name="ipfabricsnapshot_delete",
|
|
50
|
+
),
|
|
51
|
+
path(
|
|
52
|
+
"data/<int:pk>/delete",
|
|
53
|
+
views.IPFabricSnapshotDataDeleteView.as_view(),
|
|
54
|
+
name="ipfabricdata_delete",
|
|
55
|
+
),
|
|
56
|
+
path("data/<int:pk>/", include(get_model_urls("ipfabric_netbox", "ipfabricdata"))),
|
|
57
|
+
path(
|
|
58
|
+
"data/delete",
|
|
59
|
+
views.IPFabricSnapshotDataBulkDeleteView.as_view(),
|
|
60
|
+
name="ipfabricdata_bulk_delete",
|
|
61
|
+
),
|
|
62
|
+
# Sync
|
|
63
|
+
path("sync/", views.IPFabricSyncListView.as_view(), name="ipfabricsync_list"),
|
|
64
|
+
path("sync/add/", views.IPFabricSyncEditView.as_view(), name="ipfabricsync_add"),
|
|
65
|
+
path("sync/<int:pk>/", include(get_model_urls("ipfabric_netbox", "ipfabricsync"))),
|
|
66
|
+
# Branch
|
|
67
|
+
path("branch/", views.IPFabricBranchListView.as_view(), name="ipfabricbranch_list"),
|
|
68
|
+
path(
|
|
69
|
+
"branch/<int:pk>/", include(get_model_urls("ipfabric_netbox", "ipfabricbranch"))
|
|
70
|
+
),
|
|
71
|
+
# Transform Map
|
|
72
|
+
path(
|
|
73
|
+
"transform-map/",
|
|
74
|
+
views.IPFabricTransformMapListView.as_view(),
|
|
75
|
+
name="ipfabrictransformmap_list",
|
|
76
|
+
),
|
|
77
|
+
path(
|
|
78
|
+
"transform-map/restore/",
|
|
79
|
+
views.IPFabricTransformMapRestoreView.as_view(),
|
|
80
|
+
name="ipfabrictransformmap_restore",
|
|
81
|
+
),
|
|
82
|
+
path(
|
|
83
|
+
"transform-map/add",
|
|
84
|
+
views.IPFabricTransformMapEditView.as_view(),
|
|
85
|
+
name="ipfabrictransformmap_add",
|
|
86
|
+
),
|
|
87
|
+
path(
|
|
88
|
+
"transform-map/delete/",
|
|
89
|
+
views.IPFabricTransformMapBulkDeleteView.as_view(),
|
|
90
|
+
name="ipfabrictransformmap_bulk_delete",
|
|
91
|
+
),
|
|
92
|
+
path(
|
|
93
|
+
"transform-map/<int:pk>/",
|
|
94
|
+
include(get_model_urls("ipfabric_netbox", "ipfabrictransformmap")),
|
|
95
|
+
),
|
|
96
|
+
path(
|
|
97
|
+
"transform-map/<int:pk>/delete/",
|
|
98
|
+
views.IPFabricTransformMapDeleteView.as_view(),
|
|
99
|
+
name="ipfabrictransformmap_delete",
|
|
100
|
+
),
|
|
101
|
+
# Transform field
|
|
102
|
+
path(
|
|
103
|
+
"transform-field/",
|
|
104
|
+
views.IPFabricTransformFieldListView.as_view(),
|
|
105
|
+
name="ipfabrictransformfield_list",
|
|
106
|
+
),
|
|
107
|
+
path(
|
|
108
|
+
"transform-field/add/",
|
|
109
|
+
views.IPFabricTransformFieldEditView.as_view(),
|
|
110
|
+
name="ipfabrictransformfield_add",
|
|
111
|
+
),
|
|
112
|
+
path(
|
|
113
|
+
"transform-field/<int:pk>/",
|
|
114
|
+
include(get_model_urls("ipfabric_netbox", "ipfabrictransformfield")),
|
|
115
|
+
),
|
|
116
|
+
path(
|
|
117
|
+
"transform-field/<int:pk>/delete/",
|
|
118
|
+
views.IPFabricTransformFieldDeleteView.as_view(),
|
|
119
|
+
name="ipfabrictransformfield_delete",
|
|
120
|
+
),
|
|
121
|
+
# Relationship Field
|
|
122
|
+
path(
|
|
123
|
+
"relationship-field/",
|
|
124
|
+
views.IPFabricRelationshipFieldListView.as_view(),
|
|
125
|
+
name="ipfabricrelationshipfield_list",
|
|
126
|
+
),
|
|
127
|
+
path(
|
|
128
|
+
"relationship-field/add/",
|
|
129
|
+
views.IPFabricRelationshipFieldEditView.as_view(),
|
|
130
|
+
name="ipfabricrelationshipfield_add",
|
|
131
|
+
),
|
|
132
|
+
path(
|
|
133
|
+
"relationship-field/<int:pk>/",
|
|
134
|
+
include(get_model_urls("ipfabric_netbox", "ipfabricrelationshipfield")),
|
|
135
|
+
),
|
|
136
|
+
path(
|
|
137
|
+
"relationship-field/<int:pk>/delete/",
|
|
138
|
+
views.IPFabricRelationshipFieldDeleteView.as_view(),
|
|
139
|
+
name="ipfabricrelationshipfield_delete",
|
|
140
|
+
),
|
|
141
|
+
)
|
|
File without changes
|