Arthur Hanson
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
Pavel Korovin
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
Jeremy Stretch
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
jeremystretch
00088cba6d
#11559 : Add device config API endpoint & cleanup
2023-03-21 17:00:06 -04:00
jeremystretch
db42589cca
Closes #5303 : A virtual machine may be assigned to a site and/or cluster
2022-05-26 14:59:49 -04:00
jeremystretch
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
jeremystretch
bbdeae0ed9
Move CustomFieldModelViewSet functionality into NetBoxModelViewSet
2022-03-09 11:44:55 -05:00
jeremystretch
efd5a73a18
Refactor API views
2022-03-09 11:27:42 -05:00
jeremystretch
3651ef53e3
#7852 : Extend VRF assignment to VM interfaces
2022-02-07 09:54:00 -05:00
jeremystretch
67c73768c1
Add count_fhrp_groups to interface serializers
2021-11-04 09:58:33 -04:00
jeremystretch
ea39c8a4c1
Optimize interface REST API endpoints
2021-11-03 15:38:17 -04:00
jeremystretch
cfb3897047
Add tags to organizational & nested group models
2021-10-21 10:51:02 -04:00
jeremystretch
1024782b9e
Rename FilterSet modules
2021-04-29 16:48:24 -04:00
jeremystretch
b0573f88e6
Merge branch 'develop' into feature
2021-04-11 13:16:00 -04:00
jeremystretch
a3721a94ce
Closes #6121 : Extend parent interface assignment to VM interfaces
2021-04-09 10:53:05 -04:00
jeremystretch
e69251b21a
Fixes #6070 : Add missing 'count_ipaddresses' attribute to VMInterface serializer
2021-04-08 14:22:45 -04:00
Jeremy Stretch
664a39911c
Add custom field support for organizational models to API serializers
2021-02-25 15:58:13 -05:00
Jeremy Stretch
8ae3331d04
Closes #5549 : Eliminate extraneous database queries when using brief API calls
2020-12-29 11:41:44 -05:00
Jeremy Stretch
4a066a1913
Rename get_subquery() to count_related()
2020-12-17 14:47:49 -05:00
Jeremy Stretch
91083fd6c5
Call Coalesce() inside get_queryset()
2020-12-17 14:45:50 -05:00
Jeremy Stretch
202e7d0ebf
Fixes #5486 : Optimize retrieval of config context data for device/VM REST API views
2020-12-17 14:03:10 -05:00
Daniel Sheppard
3c2b2f26b9
Fixes : #5450 - Added Coalesce to viewsets for the _count functions
2020-12-15 12:50:28 -06:00
Jeremy Stretch
915cf3e715
Merge branch 'develop' into develop-2.10
2020-12-01 11:42:55 -05:00
Jeremy Stretch
f55e966c8f
Closes #4865 : Replace all Count() annotations with subqueries ( #5385 )
...
* Convert circuits to use subqueries
* Convert dcim to use subqueries
* Convert extras to use subqueries
* Convert ipam to use subqueries
* Convert secrets to use subqueries
* Convert virtualization to use subqueries
* Update global search view to use subqueries where appropriate
* Remove extraneous order_by() calls
2020-11-25 15:49:18 -05:00
Jeremy Stretch
fcb5e6ae1c
Merge branch 'develop' into develop-2.10
2020-10-30 10:38:05 -04:00
John Anderson
28c17f33ab
move get_queryset() to common mixin
2020-10-30 02:56:43 -04:00
John Anderson
22d2289ed2
add support for regions and vms
2020-10-23 01:18:04 -04:00
Jeremy Stretch
c0c5f52ed9
Reorganize REST API components under netbox app
2020-10-13 15:57:21 -04:00
Jeremy Stretch
ec66e1a5c0
Closes #4349 : Drop support for embedded graphs
2020-08-21 11:57:46 -04:00
Jeremy Stretch
fd139a77f5
Closes #4997 : Introduce OrderedDefaultRouter; move root API views to views.py
2020-08-13 12:49:49 -04:00
Jeremy Stretch
65b42c93b0
Merge branch 'develop' into develop-2.9
2020-08-05 09:15:10 -04:00
Jeremy Stretch
76c2fd3414
Fixes #4926 : Fix ordering of VM interfaces in REST API endpoint
2020-07-30 09:10:06 -04:00
Jeremy Stretch
cb36f9fdb3
Remove restriction enforcement from RestrictedQuerySet
2020-07-23 12:48:03 -04:00
Jeremy Stretch
0f679e1f03
Closes #4871 : Specify ordering for querysets using annotate() to count related objects
2020-07-20 12:07:19 -04:00
Jeremy Stretch
96b3de7916
Remove extraneous queryset filter
2020-07-10 10:27:07 -04:00
Jeremy Stretch
9ea4f82eaa
Prefetch tagged VLANs for VMInterfaces
2020-06-29 12:18:59 -04:00
Jeremy Stretch
89ff59d048
Add graphs endpoint to VMInterfaceViewSet
2020-06-29 12:05:00 -04:00
Jeremy Stretch
99c72c78c1
Update VMInterface view names
2020-06-24 10:09:22 -04:00
Jeremy Stretch
e3820e93b7
Misc cleanup, renaming
2020-06-23 16:39:43 -04:00
Jeremy Stretch
548127cc88
Rename VMInterface serializers
2020-06-23 15:46:20 -04:00
Jeremy Stretch
75354a8a78
Rename Interface to VMInterface
2020-06-23 13:21:44 -04:00
Jeremy Stretch
6cb31a274f
Initial work on #4721 (WIP)
2020-06-22 13:10:56 -04:00
Jeremy Stretch
ea9de37dd1
Remove FieldChoicesViewSet
2020-03-12 10:48:17 -04:00
Jeremy Stretch
49f027fae7
Refactor FieldChoicesViewSet; add Interface.type to virtualization _choices endpoint
2020-01-15 09:59:44 -05:00
Jeremy Stretch
49a6a36f4c
Renamed virtualization FilterSets
2020-01-09 20:42:32 -05:00
Fredrik Lönnegren
3262805938
Add tenancy to cluster
...
fix pep8
2019-10-07 16:20:14 +02:00
John Anderson
ade844f7a7
fixes #3428 - caching invalidation issues
...
Mitgate invalidation issues by using prefetch_related instead of select_related.
Also use invalidated_update instead of just update.
2019-08-19 01:53:39 -04:00
Jeremy Stretch
017a5011ec
Added '*_count' fields for child objects
2019-04-19 16:50:42 -04:00
Jeremy Stretch
a46b43bff6
Added child counts to API serializers (WIP)
2019-04-12 17:07:56 -04:00
John Anderson
e521508de9
#2350 - added virtual machines and test cases
2019-02-18 22:10:05 -05:00