ipfabric_netbox 4.0.1b2__py3-none-any.whl → 4.0.1b4__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/tests/test_models.py +0 -2
- ipfabric_netbox/utilities/ipfutils.py +10 -5
- {ipfabric_netbox-4.0.1b2.dist-info → ipfabric_netbox-4.0.1b4.dist-info}/METADATA +1 -1
- {ipfabric_netbox-4.0.1b2.dist-info → ipfabric_netbox-4.0.1b4.dist-info}/RECORD +6 -6
- {ipfabric_netbox-4.0.1b2.dist-info → ipfabric_netbox-4.0.1b4.dist-info}/WHEEL +0 -0
ipfabric_netbox/__init__.py
CHANGED
|
@@ -217,7 +217,6 @@ class IPFabricTransformMapModelTestCase(TestCase):
|
|
|
217
217
|
site_transform_map = IPFabricTransformMap.objects.get(name="Site Transform Map")
|
|
218
218
|
self.assertEqual(site_transform_map.name, "Site Transform Map")
|
|
219
219
|
self.assertEqual(site_transform_map.source_model, "site")
|
|
220
|
-
self.assertEqual(site_transform_map.status, "active")
|
|
221
220
|
self.assertEqual(
|
|
222
221
|
site_transform_map.target_model,
|
|
223
222
|
ContentType.objects.filter(app_label="dcim", model="site")[0],
|
|
@@ -257,7 +256,6 @@ class IPFabricTransformMapModelTestCase(TestCase):
|
|
|
257
256
|
"target_model": ContentType.objects.get(
|
|
258
257
|
app_label="dcim", model="site"
|
|
259
258
|
).pk,
|
|
260
|
-
"status": "active",
|
|
261
259
|
},
|
|
262
260
|
}
|
|
263
261
|
new_data = copy.deepcopy(data)
|
|
@@ -27,6 +27,13 @@ from .nbutils import device_serial_max_length
|
|
|
27
27
|
from .nbutils import order_devices
|
|
28
28
|
from .nbutils import order_members
|
|
29
29
|
|
|
30
|
+
FAILED_CREATE_INSTANCE_TEMPLATE = (
|
|
31
|
+
"Failed to create instance of '{model}': <br/>"
|
|
32
|
+
"message: '{err}'<br/>"
|
|
33
|
+
"raw data: '{data}'<br/>"
|
|
34
|
+
"context: '{context}'<br/>"
|
|
35
|
+
)
|
|
36
|
+
|
|
30
37
|
if TYPE_CHECKING:
|
|
31
38
|
from ..models import IPFabricIngestion
|
|
32
39
|
|
|
@@ -234,11 +241,9 @@ class IPFabricSyncRunner(object):
|
|
|
234
241
|
raise SearchError(model=model, context=context, data=data) from err
|
|
235
242
|
except Exception as err:
|
|
236
243
|
self.logger.log_failure(
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
context: `{context}`<br/>
|
|
241
|
-
""",
|
|
244
|
+
FAILED_CREATE_INSTANCE_TEMPLATE.format(
|
|
245
|
+
model=model, err=err, data=data, context=context
|
|
246
|
+
),
|
|
242
247
|
obj=self.sync,
|
|
243
248
|
)
|
|
244
249
|
raise SyncDataError(model=model, context=context, data=data) from err
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
ipfabric_netbox/__init__.py,sha256=
|
|
1
|
+
ipfabric_netbox/__init__.py,sha256=G4Pwr0mv7abvmDZzlCYmu3UbHIFltUeKYXZ7VfN7_IE,674
|
|
2
2
|
ipfabric_netbox/api/__init__.py,sha256=DOkvDAI4BoNgdCiNxfseeExEHyOrK8weG-LvjPRyK8A,101
|
|
3
3
|
ipfabric_netbox/api/nested_serializers.py,sha256=F-VpAL6xhNSUipuvR9_37sVw-3IPjr-XZB5CkouwelA,2174
|
|
4
4
|
ipfabric_netbox/api/serializers.py,sha256=BOhibC7IZDhaPhTAdQmt_RJtVxmgqjt-MXIo7UcNGZc,4496
|
|
@@ -60,14 +60,14 @@ ipfabric_netbox/templates/static/ipfabric_netbox/css/rack.css,sha256=z1H-RmmsqF2
|
|
|
60
60
|
ipfabric_netbox/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
61
61
|
ipfabric_netbox/templatetags/ipfabric_netbox_helpers.py,sha256=STw4pAd2qG7hgf-O6UNTwsO5VqEa_gxf5wLv50BWL4Q,417
|
|
62
62
|
ipfabric_netbox/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
63
|
-
ipfabric_netbox/tests/test_models.py,sha256=
|
|
63
|
+
ipfabric_netbox/tests/test_models.py,sha256=4SGMX0LZ_fThkc-F1AMZIQbpmJvQNVFnS6QYZpIZkNA,14998
|
|
64
64
|
ipfabric_netbox/urls.py,sha256=ok66LP09rYi01qJmwdGGlBzV9wrGWVwVAIngPcreJxg,5449
|
|
65
65
|
ipfabric_netbox/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
66
|
-
ipfabric_netbox/utilities/ipfutils.py,sha256=
|
|
66
|
+
ipfabric_netbox/utilities/ipfutils.py,sha256=LNFNfwTAUkHb09PRExZHfRdiSubWvGHuZzvhBWHgA7Q,28675
|
|
67
67
|
ipfabric_netbox/utilities/logging.py,sha256=GYknjocMN6LQ2873_az3y0RKm29TCXaWviUIIneH-x0,3445
|
|
68
68
|
ipfabric_netbox/utilities/nbutils.py,sha256=kFBEiJOGvr_49hJWCS2duXojx2-A9kVk0Xp_vj0ohfs,2641
|
|
69
69
|
ipfabric_netbox/utilities/transform_map.py,sha256=QotbGc2TksINJrb62STgAigpC5Nsgi5umYHu_0rZd8k,2204
|
|
70
70
|
ipfabric_netbox/views.py,sha256=tPuceZgH2veu5ls4_avUiM9fuM5pYxr1KFWp5im5b0s,35898
|
|
71
|
-
ipfabric_netbox-4.0.
|
|
72
|
-
ipfabric_netbox-4.0.
|
|
73
|
-
ipfabric_netbox-4.0.
|
|
71
|
+
ipfabric_netbox-4.0.1b4.dist-info/METADATA,sha256=6-YQyKuh1DVQVzmVaSBQYoYDUIBVVs-xWaU58mvmV1k,4345
|
|
72
|
+
ipfabric_netbox-4.0.1b4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
73
|
+
ipfabric_netbox-4.0.1b4.dist-info/RECORD,,
|
|
File without changes
|