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

36 Commits

Author SHA1 Message Date
709eac6b98 Closes #15292: Remove obsolete device_role attribute from Device model 2024-03-01 11:31:47 -05: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
0bb86f1e7d Replaces device_role with role on device model (#13342)
* replaces device_role with role on device model #6391

* fixes lint issue #6391

* revert the database user

* revert test_runner comment

* changes as per review

* Update references to device_role column in UserConfigs

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-08-02 09:55:52 -04:00
758c5347fb Fixes #10201: Fix AssertionError exception when removing some terminations from an existing cable 2023-01-11 14:42:25 -05:00
bd29d15814 Fixes #10579: Mark cable traces terminating to a provider network as complete 2022-11-17 16:08:29 -05:00
9a7f3f8c1a Cleanup for #9102 2022-07-07 12:48:44 -04:00
8bbc592261 Add SVG rendering to cable path tests 2022-06-27 15:53:34 -04:00
0b0a646f87 Clean up cable termination changes 2022-06-03 14:15:28 -04:00
537383e071 Add cable topology tests 2022-06-02 12:40:31 -04:00
594964aebe Simplify Cable init signature 2022-05-12 17:11:01 -04:00
bb9eb119a4 Extend cable tracing tests 2022-05-12 16:08:44 -04:00
c88f7b8408 Fix circuit termination tracing & update tests 2022-05-12 16:08:44 -04:00
eb4984afe6 Correct test queries 2022-05-12 16:08:44 -04:00
304282bd4f Update tests 2022-05-12 16:08:44 -04:00
e129ae50f0 Start updating tests 2022-05-12 16:08:44 -04:00
95ed07a95e Add status field to WirelessLink 2021-10-13 14:31:30 -04:00
b77c228853 Rebuild CablePaths when a CircuitTermination is modified 2021-04-02 09:17:11 -04:00
8713ed5d73 Add test for trace through multiple circuits 2021-04-01 20:38:36 -04:00
96759af86f Closes #6071: Cable traces now traverse circuits 2021-04-01 14:31:10 -04:00
8461832a7b Fixes #5395: Fix cable tracing for rear ports with no corresponding front port 2020-12-02 12:03:25 -05:00
30778a9c40 Closes #5225: CircuitTermination port_speed is now optional 2020-10-09 14:06:24 -04:00
a716ca705c Rewrite cablepath tests to create components within each test 2020-10-08 14:55:13 -04:00
0c5efa243d Handle traces which split at a RearPort 2020-10-08 13:45:47 -04:00
56ee425227 Introduce PathContains lookup to allow filtering against objects in path directly 2020-10-06 09:41:45 -04:00
3d34f1cdcb Rename CablePath.is_connected to is_active 2020-10-05 11:13:33 -04:00
5737f6fca0 Cache each CablePath on its originating endpoint 2020-10-02 17:16:43 -04:00
4fd1219814 Add tests for all PathEndpoint classes 2020-10-02 11:35:17 -04:00
9f242216e6 Rename test elements to be more readable 2020-10-02 10:14:52 -04:00
d50a0d94be Add tests for multiple pass-through breakouts 2020-10-02 09:54:12 -04:00
3b0a75edf8 Add test for updated paths on cable status change 2020-10-01 17:25:44 -04:00
0d07b0346b Add test for connecting cables out of order 2020-10-01 16:53:13 -04:00
610420c020 Drop support for split paths 2020-10-01 14:24:34 -04:00
46df5a97b2 Remove extraneous test objects 2020-09-30 17:12:38 -04:00
e53ae1d584 Extend cable path tests 2020-09-30 17:10:22 -04:00
319329e2b2 Extend cable path tests 2020-09-30 16:17:22 -04:00
985197788b Add initial tests 2020-09-30 15:15:27 -04:00