Commit Graph

73 Commits

Author SHA1 Message Date
Jeremy Stretch
0ef02c348d #10500: Cleanup (#17305)
* Use MPTTColumn for module bays

* Fix return URLs

* Omit extraneous relationships from nested serializers

* Add note re: v4.1
2024-08-29 15:38:53 -04:00
Arthur Hanson
e6f5ae4c25 Closes #10500: Introduce support for nested modules (#16983)
* 10500 add ModularComponentModel

* 10500 add ModularComponentModel

* 10500 add to forms

* 10500 add to serializer, tables

* 10500 template

* 10500 add docs

* 10500 check recursion

* 10500 fix graphql

* 10500 fix conflicting migration from merge

* 10500 token resolution

* 10500 don't return reverse

* 10500 don't return reverse / optimize

* Add ModuleTypeModuleBaysView

* Fix replication of module bays on new modules

* Clean up tables & templates

* Adjust uniqueness constraints

* Correct URL

* Clean up docs

* Fix up serializers

* 10500 add filterset tests

* 10500 add nested validation to Module

* Misc cleanup

* 10500 ModuleBay recursion Test

* 10500 ModuleBay recursion Test

* 10500 ModuleBay recursion Test

* 10500 ModuleBay recursion Test

* Enable MPTT for module bays

* Fix tests

* Fix validation of module token in component names

* Misc cleanup

* Merge migrations

* Fix table ordering

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-05 13:13:59 -04:00
Arthur Hanson
a5a9326dc9 17058 RackType name -> model (#17059)
* 17058 RackType name -> model

* 17058 RackType name -> model

* 17058 fix tests

* 17058 fix tests
2024-08-01 09:06:51 -04:00
Jeremy Stretch
7028adbb9a Documentation updates for v4.1 2024-07-31 16:26:21 -04:00
Arthur Hanson
66628d309b 11969 airflow (#16967)
* 11960 Add airflow

* 11960 Add airflow

* 11960 fix tests

* 11960 fix racktype form

* 11969 different choices type

* 11969 update docs

* 11969 fix racktype copy

* 11969 fix

* Misc cleanup & reordering of form fields

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-07-25 15:14:02 -04:00
Arthur Hanson
a5525df277 12826 Add Rack Type (#16739)
* 12826 add RackType

* 12826 add forms, filters, tables

* 12826 add to menu

* 12826 remove role

* 12826 add api/serializers

* 12826 add tests and fixes

* 12826 fix tests

* 12826 fix tests

* 12826 fix tests

* 12826 fix tests

* 12826 add device_type to device and instantiation

* 12826 test device creation

* 12826 add slug

* 12826 fix tests

* 12826 fix slug field

* 12826 prevent modification of rack fields if rack_type set

* 12826 update rack fields on rack_type edit

* Misc cleanup

* Update model docs

* Add manufacturer field to RackType

* Add test for mounting_depth

* Rename 'type' to 'form_factor'

* Create base classes for Rack & RackType models, serializers

* Hide RackType-defined fields on RackForm when a rack type is set

* Establish a base filter form for Rack & RackType

* Clean up RackType attr inheritance

* Clean up templates

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-07-16 08:58:22 -04:00
Daniel Sheppard
32c08fc358 Closes: #13918 - Add facility field (#15456)
* Fixes: #13918 - Add facilities field to Location model.

* Stupidly forgot to `git add`

* Fix errant reference to site.

* Misc cleanup

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-03-18 10:09:50 -04:00
Jeremy Stretch
86673156db Closes #15292: Remove obsolete device_role attribute from Device model 2024-03-01 11:31:47 -05:00
Jeremy Stretch
284e68ed9d Merge branch 'develop' into feature 2023-12-27 16:34:38 -05:00
Jeremy Stretch
ab01b31801 Fixes #13741: Update docs to correctly reflect inventory item uniqueness requirements 2023-12-26 13:35:03 -05:00
Jeremy Stretch
1cdc511861 Closes #12135: Prevent the deletion of interfaces with children (#14091)
* Closes #12135: Prevent the deletion of interfaces with children

* Change PROTECT to RESTRICT

* Extend handle_protectederror() to also handle RestrictedError

* Fix string translation

* Update migrations

* Support bulk removal of parent interfaces via UI if all children are included

* Add support for the bulk deletion of restricted objects via REST API
2023-11-01 13:47:14 -04:00
Abhimanyu Saharan
60c759592a removes napalm references #13628 2023-08-31 09:54:35 -04:00
Jeremy Stretch
7eb94d050a #12175: Misc cleanup 2023-08-02 11:04:28 -04:00
Jamie (Bear) Murphy
44776b02c0 Oob ip (devices) (#13013)
* initial oob_ip support for devices

* add primary ip and oob ip checkmark to ip address view

* add oob ip to device view and device edit view

* pep8

* make is_oob_ip and is_primary_ip generic for other models

* refactor oob_ip

* fix oob ip signal

* string capitalisation

* Misc cleanup

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-25 14:40:40 -04:00
Arthur Hanson
a21bf5b3c1 11305 Add GPS coordinates to device (#12782)
* 11305 add lat/long to devices

* 11305 update docs

* 11305 update tests
2023-06-14 14:18:50 -04:00
jeremystretch
546a263704 Fix broken links 2023-05-04 08:43:17 -04:00
jeremystretch
fc9d3270e9 #10520: Remove obsolete NAPALM documentation 2023-04-21 11:22:38 -04:00
jeremystretch
7db15e9b32 #9653: Cleanup 2023-03-20 16:00:08 -04:00
Jeremy Stretch
86690d83a1 Closes #11559: Implement config template rendering (#11769)
* WIP

* Add config_template field to Device

* Pre-fetch referenced templates

* Correct up_to_date callable

* Add config_template FK to Device

* Update & merge migrations

* Add config_template FK to Platform

* Add tagging support for ConfigTemplate

* Catch exceptions when rendering device templates in UI

* Refactor ConfigTemplate.render()

* Add support for returning plain text content

* Add ConfigTemplate model documentation

* Add feature documentation for config rendering
2023-02-19 20:09:52 -05:00
jeremystretch
6c955b5e2a Closes #10675: Add max_weight field to track maximum load capacity for racks 2022-12-09 12:45:02 -05:00
jeremystretch
9065ec80b6 Closes #10371: Add operational status field for modules 2022-12-09 10:43:29 -05:00
jeremystretch
8a6143efdb Changelog & documentation for #7854 2022-11-11 08:25:44 -05:00
jeremystretch
5ef76f2b2a Closes #10820: Switch timezone library from pytz to zoneinfo 2022-11-02 15:54:41 -04:00
jeremystretch
e09958486d Closes #9832: Add mounting_depth field to rack model 2022-10-27 10:50:54 -04:00
Arthur Hanson
57cbd5243d 9654 device weight (#10448)
* 9654 add weight fields to devices

* 9654 changes from code review

* 9654 change _abs_weight to grams

* Resolve migrations conflict

* 9654 code-review changes

* 9654 total weight on devices

* Misc cleanup

Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2022-09-30 16:31:04 -04:00
jeremystretch
d2a400c24e Update virtualization models documentation 2022-08-16 15:57:29 -04:00
jeremystretch
68831c3a40 Finish refreshing DCIM models documentation 2022-08-15 15:16:02 -04:00
jeremystretch
8bbfdf538b Update model docs for device components 2022-08-15 11:57:38 -04:00
jeremystretch
23bbdeeda1 Merge branch 'develop' into feature 2022-08-12 10:18:57 -04:00
jeremystretch
d07272a037 Fixes #9961: Correct typo 2022-08-10 15:24:45 -04:00
jeremystretch
6f0cd5ee2a Closes #9793: Add PoE attributes to interface templates 2022-07-28 15:20:25 -04:00
jeremystretch
2e909b231d Misc cleanup 2022-07-12 16:29:26 -04:00
jeremystretch
568f801846 Closes #7744: Add status field to Location 2022-06-22 13:33:19 -04:00
jeremystretch
5691240267 Closes #1099: Add PoE mode & type for interfaces 2022-06-21 21:22:24 -04:00
Stephan Blanke
606916a6fe Closes #8913: Improve documentation regarding VC masters interfaces 2022-04-08 19:39:18 +02:00
jeremystretch
5f8f593eec Closes #7852: Enable assigning interfaces to VRFs 2022-01-07 14:57:43 -05:00
jeremystretch
bb6978096f Changelog & documentation for #8118 2021-12-29 16:40:03 -05:00
jeremystretch
41afae5b0a #8037: Add role field to InventoryItem 2021-12-27 10:45:33 -05:00
jeremystretch
08fd357d27 #3087: Add InvetoryItemRole 2021-12-27 10:18:39 -05:00
jeremystretch
c6f42cd1b9 Add documentation for modules 2021-12-20 10:31:18 -05:00
jeremystretch
a6796897cd Merge branch 'develop' into feature 2021-11-09 16:52:36 -05:00
jeremystretch
0f4378b0db Fixes #7750: Fix cable trace image link 2021-11-05 11:10:17 -04:00
jeremystretch
54a7148f67 Merge branch 'develop' into feature 2021-11-03 10:29:02 -04:00
bluikko
4875980717 Fix #7685: Doc image links (#7698)
* Fix image link in custom-script.md

* Fix image link in cable.md

* Fix image link in power.md
2021-11-01 09:13:18 -04:00
jeremystretch
325ca76a86 Merge branch 'feature' into 3979-wireless 2021-10-21 13:19:52 -04:00
jeremystretch
35e9921332 Add wireless documentation 2021-10-20 11:22:56 -04:00
jeremystretch
a3cc2bc3c7 Closes #7354: Relax uniqueness constraints on region, site group, and location names 2021-10-19 13:46:35 -04:00
jeremystretch
cace1d7ecf 3839: Add airflow field to Device 2021-10-14 16:15:08 -04:00
jeremystretch
afbc275ba6 Clean up documentation build warnings 2021-09-15 11:46:58 -04:00
jeremystretch
0ff1ac62fe Fixes #7159: Remove NAPALM link 2021-09-02 15:55:41 -04:00