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

56 Commits

Author SHA1 Message Date
d042e6f69d Closes #15238: Include description field in brief mode 2024-02-26 11:39:31 -05:00
549b0ea107 Closes #8356: Add virtual disk to Virtual Machines (#14087)
* 8356 add virtual disk model

* 8356 add supplemental forms

* 8356 add menu

* 8356 cleanup views

* 8356 virtual machine tab

* 8356 migrations

* 8356 vm disk tables

* 8356 cleanup

* 8356 graphql

* 8356 graphql

* 8356 add components button

* 8356 bulk add on virtualmachine

* 8356 bulk add fixes

* 8356 api tests

* 8356 news tests add rename

* 8356 VirtualDiskCreateForm

* 8356 fix test

* 8356 add todo to remove disk from vm

* 8356 review changes

* 8356 fix test

* 8356 deprecate disk field

* 8356 review changes

* 8356 fix test

* 8356 fix test

* Simplify view actions

* 8356 review changes

* 8356 split trans tag

* 8356 add total virtual disk size to api

* 8356 add virtual disk list to virtual machine detail view

* 8356 move virtual disk size to property

* 8356 revert property

* Tweak display of deprecated disk field

* 8356 render single disk field

* 8356 update serializer

* 8356 model property

* 8356 fix test

* 8356 review changes

* Revert disk space annotation

* Use existing disk field to store aggregate virtual disk size

* Introduce abstract ComponentModel for VM components

* Add search index for VirtualDisk

* Misc cleanup

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-17 15:02:56 -05:00
e13bf48a35 Add /api/virtualization/virtual-machines/{id}/render-config/ endpoint (#14287)
* Add /api/virtualization/virtual-machines/{id}/render-config/ endpoint

* Update Docstring "Device" -> "Virtual Machine"

Docstring should mention "..this Virtual Machine" instead of "...this Device", thanks @LuPo!

* Move config rendering logic to new RenderConfigMixin

* Add tests for render-config API endpoint

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-17 08:32:58 -05:00
944008d475 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
db42589cca Closes #5303: A virtual machine may be assigned to a site and/or cluster 2022-05-26 14:59:49 -04:00
b331f047af Closes #8222: Enable the assignment of a VM to a specific host device within a cluster 2022-05-25 16:01:10 -04:00
64146b8cb1 Closes #8471: Add status field to Cluster 2022-05-19 16:13:22 -04:00
3651ef53e3 #7852: Extend VRF assignment to VM interfaces 2022-02-07 09:54:00 -05:00
5193fa6483 Add tests for #6346 2021-10-21 16:57:01 -04:00
38d7b83ed0 Merge v2.11.9 2021-07-08 12:15:57 -04:00
7c667f3485 Fixes #6710: Fix assignment of VM interface parent via REST API 2021-07-07 11:55:20 -04:00
e6091ee0c9 Consolidate GraphQLTestCase into APIViewTestCase 2021-06-30 10:07:33 -04:00
728b3bac67 Use _list appendix for GraphQL list queries 2021-06-30 09:57:33 -04:00
605b7c5b3e Add GraphQL for virtualization 2021-06-25 15:31:43 -04:00
fb48c1f6dd Add 'display' field to all REST API serializers 2021-03-16 10:06:25 -04:00
2bb79a2773 Add missing bulk update test data 2020-11-02 16:56:04 -05:00
38ed612cb9 Add test for API bulk updates 2020-09-22 13:50:55 -04:00
ec66e1a5c0 Closes #4349: Drop support for embedded graphs 2020-08-21 11:57:46 -04:00
cb36f9fdb3 Remove restriction enforcement from RestrictedQuerySet 2020-07-23 12:48:03 -04:00
c5362f5931 Fix permissions evaluation for nonstandard tests 2020-07-02 11:43:03 -04:00
617e20af0b Standardize VMInterfaceTest 2020-06-29 12:06:36 -04:00
e3820e93b7 Misc cleanup, renaming 2020-06-23 16:39:43 -04:00
25d6bbf659 Update view and permission names for VMInterface 2020-06-23 14:48:37 -04:00
75354a8a78 Rename Interface to VMInterface 2020-06-23 13:21:44 -04:00
6cb31a274f Initial work on #4721 (WIP) 2020-06-22 13:10:56 -04:00
a8145fe4c2 Add permission assignment to custom test methods 2020-06-08 13:40:46 -04:00
d3fbaca228 Standardize virtualization API tests 2020-06-05 15:06:08 -04:00
9df238c5f2 Merge branch 'develop' into develop-2.8 2020-03-15 00:18:32 -04:00
a53f854187 Remove tests for API _choices endpoints 2020-03-12 10:48:53 -04:00
a504f5f309 closes #4340 - Enforce unique constraints for device and virtual machine names in the API 2020-03-10 19:15:24 -04:00
302f87e108 Fixes #3937: Suppress warning messages in tests for requests expected to yield a 4XX response 2020-01-17 14:53:33 -05:00
8bd67b2c17 Add tests for browsable API endpoints 2020-01-15 17:47:55 -05:00
c202c1325b Add test for VM interface type choices 2020-01-15 10:04:12 -05:00
857e04e90b Add _choices endpoint tests for all apps 2020-01-14 16:13:11 -05:00
3fa4ceadb0 Interface.mode to slug (#3569) 2019-11-21 22:50:01 -05:00
5f5081f719 Interface.type to slug (#3569) 2019-11-21 22:11:02 -05:00
205adeb2e9 Remove NullableCharFieldFilter; add missing filter fields 2019-05-07 13:59:21 -04:00
a46b43bff6 Added child counts to API serializers (WIP) 2019-04-12 17:07:56 -04:00
1a2c9e3bba Rename form_factor to type on dcim.Interface 2019-04-12 13:42:56 -04:00
4f9b666eee Merge branch 'develop' into develop-2.6 2019-04-09 14:11:26 -04:00
7f6d79362e Fix virtualization test and add to changelog 2019-04-05 09:47:38 -05:00
e521508de9 #2350 - added virtual machines and test cases 2019-02-18 22:10:05 -05:00
bd7aee7c1f Closes #2614: Simplify calls of super() for Python 3 2018-11-27 10:52:24 -05:00
874acab90f Merge v2.4.8 2018-11-20 12:28:24 -05:00
23cde65add Fixes #2589: Virtual machine API serializer should require cluster assignment 2018-11-14 10:38:53 -05:00
22ed4f1b53 Merge release v2.4.6 2018-10-10 09:36:51 -04:00
259da2d18a #2487: Added API tests 2018-10-04 16:20:01 -04:00
980d62d579 Removed Python 2 string compatibility 2018-08-14 11:58:42 -04:00
98bdb0cb3c Fixes #2310: False validation error on certain nested serializers 2018-08-06 17:40:45 -04:00
24520717e4 Fixes #2305: Make VLAN fields optional when creating a VM interface via the API 2018-08-06 10:35:51 -04:00