1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
Commit Graph

87 Commits

Author SHA1 Message Date
8dcbd66de6 Closes #13427: Public model registration (#14152)
* Initial work on #13427

* Clarify documentation

* Reference public models registry when populating models for ConfigTemplate context
2023-11-03 10:32:59 -04:00
f65744faee Fixes: #11079 - Handle cables across multiple rear-port positions (#13337)
* Catch AssertionError's in signals.  Handle accordingly

* Alter cable logic to handle certain additional path types.

* Fix failures and add test

* More tests

* Remove not needed tests, add additional tests

* Finish tests, correct some behaviour

* Add check for mid-span device not allowed condition

* Remove excess import

* Remove logging import

* Remove logging import

* Minor tweaks based on Arthur's feedback

* Update netbox/dcim/tests/test_cablepaths.py

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>

* Update netbox/dcim/models/cables.py

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>

* Changes to account for required SVG rendering changes and based on feedback

* More tweaks for cable path checking

* Improve handling of links with multi-terminations

* Improved SVG rendering of multiple rear ports (with positions) per path trace.  Include asymmetric path detection

* Include missing assert to ensure links are same type.

* Clean up tests

* Remove unused objects from tests

* Changes requested to tests and update comments/doctstrings

* Fix parent reference

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-26 13:16:50 -04:00
8e251ac33c 13757 Fix ConfigContext reference to DeviceType (#13804)
* 13757 do prefetch to work around Django issue with vars in init (DeviceType)

* 13757 use self.__dict to access vars in init

* 13757 change test
2023-09-20 09:56:52 -04:00
caedc8dbe3 Closes #13352: Translation support for model verbose names (#13354)
* Update verbose_name & verbose_name_plural Meta attributes on all models

* Alter makemigrations to ignore verbose_name & verbose_name_plural changes
2023-08-03 10:41:10 -04:00
83bebc1bd2 Closes #13132: Wrap verbose_name and other model text with gettext_lazy() (i18n)
---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-31 11:28:07 -04:00
b4a3156046 9077 audit alters_data=True 2023-06-14 14:23:55 -04:00
00714b23a2 11029 add changelog on CableTermination (#11407)
* 11209 add changelog on CableTermination

* Rename migration

---------

Co-authored-by: jeremystretch <jstretch@netboxlabs.com>
2023-04-10 10:11:58 -04:00
b032742418 Closes #12133: Move any instance mutations inside clean() to save() 2023-04-03 16:26:07 -04:00
8d9e151030 11416 fix circuit termination deletion 2023-01-11 16:09:39 -05:00
f7b85ab941 Return no terminations if the cable is unsaved 2023-01-06 14:57:07 -05:00
ce9933da85 11340 cable termination setter (#11341)
* 11340 update _terminations_modified only if modified

* 11340 update _terminations_modified only if modified
2023-01-06 10:15:43 -05:00
f882dcabf7 Fixes #11184: Correct visualization of cable path which splits across multiple circuit terminations 2022-12-16 16:45:51 -05:00
c3dcd8937f Merge branch 'develop' into feature 2022-11-22 10:08:23 -05:00
9c5891f1b6 Fixes #10929: Raise validation error when attempting to create a duplicate cable termination 2022-11-21 14:08:33 -05:00
bd29d15814 Fixes #10579: Mark cable traces terminating to a provider network as complete 2022-11-17 16:08:29 -05:00
bc6b5bc4be Closes #10545: Standardize description & comment fields on primary models (#10834)
* Standardize description & comments fields on primary models

* Update REST API serializers

* Update forms

* Update tables

* Update templates
2022-11-04 08:28:09 -04:00
7ff2cb75a8 Use templated app & model names for all unique constraints 2022-09-27 15:44:38 -04:00
211c7641c1 Fixes #10250: Fix exception when CableTermination validation fails during bulk import of cables 2022-09-07 14:41:48 -04:00
5ef2d1d7ad Fixes #10217: Handle exception when trace splits to multiple rear ports 2022-08-31 10:07:10 -04:00
602cf8c5fa Fixes #9939: Fix list of next nodes for split paths under trace view 2022-08-09 11:29:42 -04:00
367bf25618 Fixes #9778: Fix exception during cable deletion after deleting a connected termination 2022-08-03 12:46:16 -04:00
b8da66bb55 Fixes #9733: Handle split paths during trace when fanning out to front ports with differing cables 2022-07-18 11:51:59 -04:00
0b86326435 #9102: Enable creating terminations in conjunction with cables via REST API 2022-07-13 15:35:37 -04:00
42e5282283 Improve filtering cables by termination device/rack/site 2022-07-08 11:44:28 -04:00
9a7f3f8c1a Cleanup for #9102 2022-07-07 12:48:44 -04:00
03d6e25dea Remove obsolete validation logic 2022-06-27 16:49:04 -04:00
7622d90c1d Extend cable tracing to support terminations to different parent objects 2022-06-27 15:22:09 -04:00
0b0a646f87 Clean up cable termination changes 2022-06-03 14:15:28 -04:00
3362bc3106 Remove link peer fields from cable termination models 2022-06-01 16:48:56 -04:00
6befd2155a Clean up tests 2022-06-01 11:38:31 -04:00
6280398bc1 Clean up tests 2022-05-26 16:40:20 -04:00
1bd39e6568 Fix filtering cables by connected device/rack/site 2022-05-26 16:01:20 -04:00
a909ceda84 Simplify assignment of new cable terminations 2022-05-18 15:49:52 -04:00
75eea50d71 Order CableTerminations by cable, cable_end 2022-05-16 16:35:32 -04:00
9ef9443969 Add REST API endpoint for CableTermination 2022-05-16 16:21:15 -04:00
1b593384e5 Restore reverse relation to CableTerminations from Cable 2022-05-13 15:45:58 -04:00
6ff2e55ce4 Add origins, destinations properties on CablePath 2022-05-13 15:05:38 -04:00
594964aebe Simplify Cable init signature 2022-05-12 17:11:01 -04:00
4d5bcb65c8 Fix up pass-through port traversal 2022-05-12 16:08:44 -04:00
c88f7b8408 Fix circuit termination tracing & update tests 2022-05-12 16:08:44 -04:00
8bc6d8cb23 Introduce CablePath.retrace() to handle deleted cables 2022-05-12 16:08:44 -04:00
5667a9c456 Refactor CablePath.from_origin() 2022-05-12 16:08:44 -04:00
b44bfa1aa6 WIP 2022-05-12 16:08:44 -04:00
93daa6406b Fix cable path tracing 2022-05-12 16:08:44 -04:00
ecee7421ea Fix terminations assignment 2022-05-12 16:08:44 -04:00
83fdab5feb Change CablePath.path to JSONField 2022-05-12 16:08:44 -04:00
f0b722b0a5 Update cable tracing logic 2022-05-12 16:08:44 -04:00
82706eb3a6 Migrate CablePath to use two-dimensional array 2022-05-12 16:08:44 -04:00
5d37f9f975 Update cable connection forms 2022-05-12 16:08:44 -04:00
1f4ad444ae Introduce CableTermination model & migrate data 2022-05-12 16:08:44 -04:00