Jeremy Stretch
528b345f57
Move TenancyFilterSet to filters.py
2020-01-09 21:05:38 -05:00
Jeremy Stretch
da0ac4ff1e
Rename filter variables for utility views
2020-01-09 20:57:13 -05:00
Jeremy Stretch
49a6a36f4c
Renamed virtualization FilterSets
2020-01-09 20:42:32 -05:00
Jeremy Stretch
0527626709
Update filter tests for v2.7
2020-01-09 16:03:41 -05:00
Jeremy Stretch
a2ead6af94
Merge branch 'develop' into develop-2.7
2020-01-09 15:27:06 -05:00
Jeremy Stretch
fe490d144a
Fixes #3868 : Fix creation of interfaces for virtual machines
2020-01-09 14:54:25 -05:00
Jeremy Stretch
4151e52802
Clean up filter imports
2020-01-08 17:20:31 -05:00
Jeremy Stretch
b1e8145ffb
Standardize usage of self.filterset for test cases
2020-01-08 17:06:39 -05:00
Jeremy Stretch
39fba4f05d
Fix InterfaceTestCase.test_mac_address
2020-01-08 11:19:13 -05:00
Jeremy Stretch
38c16d71b4
Merge branch 'develop' into 3834-filter-tests
2020-01-08 11:14:52 -05:00
Jeremy Stretch
770f4c962c
Fixes #3856 : Allow filtering VM interfaces by multiple MAC addresses
2020-01-07 10:31:44 -05:00
Jeremy Stretch
227921e0a0
Add tests for virtualization filters
2020-01-07 10:19:21 -05:00
Jeremy Stretch
1f175031bd
#3455 : Make ClusterFilterForm a TenancyFilterForm
2020-01-03 14:26:53 -05:00
Jeremy Stretch
6e49a0ba6e
Merge branch 'develop' into develop-2.7
2020-01-03 14:21:53 -05:00
Jeremy Stretch
57f199f899
Fixes #3833 : Add region and region_id filters where missing ( #3836 )
2020-01-03 13:52:50 -05:00
Jeremy Stretch
b38bb64c81
Fixes #3831 : Fix API-driven filter field rendering ( #3812 regression)
2020-01-03 11:25:22 -05:00
Jeremy Stretch
85563e21db
Remove obsolete initial_data fixtures (no longer maintained)
2019-12-12 14:30:43 -05:00
Jeremy Stretch
8a22f83bc0
Add virtualization CSV import tests
2019-12-12 11:34:02 -05:00
Jeremy Stretch
5ac4a3ba79
Omit default uniqueness validator from VirtualMachineSerializer, which implies required fields
2019-12-09 12:11:42 -05:00
Jeremy Stretch
2e37b19e9f
#2269 : Allow non-unique VirtualMachine names
2019-12-09 11:59:30 -05:00
Jeremy Stretch
88c7d95b08
ClusterForm should inherit from TenancyForm
2019-12-06 16:47:29 -05:00
Jeremy Stretch
446acbdf82
Closes #33 : Add ability to clone objects (pre-populate form fields)
2019-12-06 16:13:52 -05:00
Jeremy Stretch
17898a4c57
Merge branch 'develop-2.7' into 3569-api-choice-slugs
2019-12-05 17:43:11 -05:00
Jeremy Stretch
edbf562803
Annotate all migration operation lists
2019-12-05 17:42:33 -05:00
Sander Steffann
adb25fd7d7
822 bulk import of device components ( #3711 )
...
Closes #822 : CSV import for device components
* Implement CSV import for netbox-community#822
* Comment out default_return_url until there is a proper target
* Fix the default value of `enabled` when not included in the import
* rear_port is definitely required here
* Power Ports don't have a type (yet)
* Add import for console-ports and console-server-ports
* Add import for device-bays
2019-12-05 15:36:11 -05:00
Jeremy Stretch
ca11b9a2f5
VirtualMachine.status to slug
2019-12-04 20:40:18 -05:00
Jeremy Stretch
bcc34f6099
Device.face to slug ( #3569 )
2019-11-25 19:23:43 -05:00
Jeremy Stretch
3fa4ceadb0
Interface.mode to slug ( #3569 )
2019-11-21 22:50:01 -05:00
Jeremy Stretch
5f5081f719
Interface.type to slug ( #3569 )
2019-11-21 22:11:02 -05:00
Jeremy Stretch
f3a41df395
#3455 : Correct related_name on Cluster.tenant
2019-11-18 22:12:29 -05:00
Jeremy Stretch
bfede60f3d
Rename CreatedUpdatedFilter to CreatedUpdatedFilterSet
2019-11-14 22:00:12 -05:00
struppi
0319450643
Closes #3663 : rename filter class
2019-11-07 22:41:09 +01:00
struppi
99a542e4e4
Closes #3663 : API filter by created, last_updated
2019-11-04 20:51:56 +01:00
Jeremy Stretch
875e09013c
Move TreeNodeMultipleChoiceFilter tests to utilities (follow-up to #3616 )
2019-11-01 15:01:24 -04:00
kobayashi
d2aa9b8e79
filtering multiple regions with null
2019-10-28 02:24:44 -04:00
Jeremy Stretch
ea0d232169
Merge pull request #3572 from frelon/cluster-tenant
...
Add tenancy to cluster
2019-10-23 11:53:22 -04:00
kobayashi
766b5dff24
allow null region filtering
2019-10-22 00:41:49 -04:00
Jeremy Stretch
d849a49842
Fixes #3588 : Enforce object-form JSON for local context data on devices and VMs
2019-10-10 10:41:08 -04:00
Fredrik Lönnegren
3262805938
Add tenancy to cluster
...
fix pep8
2019-10-07 16:20:14 +02:00
dansheps
04d9889127
Fixes #3574 - Change device to parent in interface edit form vlan filtering logic
2019-10-07 08:54:39 -05:00
Jeremy Stretch
a3b9bdaff1
Miscellaneous cleanup
2019-10-04 12:59:10 -04:00
Daniel Sheppard
a84dbbf482
Fixes : #3543 - Adds inline vlan editing to virtual machine interfaces
2019-09-25 10:49:08 -05:00
Jeremy Stretch
a0545568cd
Fixes #3514 : Label TextVar fields when rendering custom script forms
2019-09-18 15:39:26 -04:00
John Anderson
63c3f423c2
Merge branch 'develop' into 3428-cache-invalidation
2019-08-20 17:35:54 -04: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
0b95cab47b
Closes #3386 : Add mac_address filter for virtual machines
2019-08-15 11:02:40 -04:00
Jeremy Stretch
3bb3b85fa2
Merged v2.5.13
2019-05-31 21:37:41 -04:00
hellerve
f9cd89a4a4
urls: fix 3168 by changing url to path
2019-05-26 14:56:00 +02:00
Jeremy Stretch
e19feb92ea
Move TenancyFilterForm to tenancy.forms
2019-05-09 14:36:18 -04:00
Jeremy Stretch
fbde6282b2
Cleanup from #2931
2019-05-09 14:32:49 -04:00
Jeremy Stretch
dfffd1ea94
Restore id__in filters to retain backward compatability until v2.7
2019-05-08 21:08:35 -04:00
Jeremy Stretch
205adeb2e9
Remove NullableCharFieldFilter; add missing filter fields
2019-05-07 13:59:21 -04:00
Jeremy Stretch
3d616baf75
Remove NumericInFilter and id__in filters
2019-05-07 13:07:18 -04:00
Jeremy Stretch
c2d0e8fd95
Cleanup from earlier work on caching
2019-04-22 14:49:31 -04:00
Jeremy Stretch
017a5011ec
Added '*_count' fields for child objects
2019-04-19 16:50:42 -04:00
John Anderson
2580b026fe
change cacheing to use cacheops
2019-04-17 12:29:21 -04:00
John Anderson
4723ddb5ce
move caching to views
2019-04-15 14:41:04 -04:00
Jeremy Stretch
a46b43bff6
Added child counts to API serializers (WIP)
2019-04-12 17:07:56 -04:00
Jeremy Stretch
1a2c9e3bba
Rename form_factor to type on dcim.Interface
2019-04-12 13:42:56 -04:00
Jeremy Stretch
e710ccb0e6
Enforce view permissions for UI views
2019-04-11 17:27:38 -04:00
dansheps
6e8e6809f3
Move Filter and Form to new file, update all files
2019-04-10 08:37:12 -05:00
dansheps
a91a79681f
Merge branch 'develop' of https://github.com/digitalocean/netbox into 2813-addtenantgroupfilter
2019-04-09 15:57:22 -05:00
Jeremy Stretch
f1d1e8b537
Update migrations
2019-04-09 14:22:45 -04:00
Jeremy Stretch
4f9b666eee
Merge branch 'develop' into develop-2.6
2019-04-09 14:11:26 -04:00
Jeremy Stretch
9a91bdbdb2
Fixes #2937 : Redirect to list view after editing an object from list view
2019-04-08 14:10:55 -04:00
dansheps
7f6d79362e
Fix virtualization test and add to changelog
2019-04-05 09:47:38 -05:00
Jeremy Stretch
c8cccc30d1
Merge branch 'develop' into develop-2.6
2019-04-02 13:12:34 -04:00
dansheps
5f40be4bd5
Changes vm_role from "true" to "True" in virtualization form
2019-03-18 09:22:36 -05:00
Jeremy Stretch
0b95016e00
Merge branch 'develop' into develop-2.6
2019-03-11 21:01:18 -04:00
Jeremy Stretch
d9c8c0cbc1
Fixes #2968 : Correct API documentation for SerializerMethodFields
2019-03-08 10:25:09 -05:00
dansheps
c208d8fc2e
* Added CSS to:
...
* Hide URLs
* Hide elements with "noprint" class
* Added noprint to:
* Header Panel
* Search Panel, Tags Panel
* Buttons
* Various list elements
* Related elements
2019-03-05 15:42:47 -06:00
Jeremy Stretch
8a1d7fdb37
Updated migrations to account for extras/0017_exporttemplate_mime_type_length
2019-03-05 13:46:37 -05:00
Jeremy Stretch
c52d077f92
Merge branch 'develop' into develop-2.6
2019-03-05 13:39:00 -05:00
dansheps
37811d3f7e
* Resolve conflict with virtualization filters.
2019-03-05 08:19:21 -06:00
dansheps
3bb1cbcdb0
* Resolve conflict with virtualization filters.
2019-03-05 08:18:04 -06:00
dansheps
b4d7f9ea43
Fixes #2781 : Fixes filter by regions on site and device list
...
* Add Device filter
2019-03-05 08:10:10 -06:00
Jeremy Stretch
78725b8483
Follow-up from #2781
2019-03-04 14:57:35 -05:00
dansheps
8683efe54a
Fixes #2813 : Add Filter and List View for TenantGroup
...
Added Filter for TenantGroup to the following Forms and Filter classes
* circuit.Circuit
* dcim.Site
* dcim.Rack
* dcim.RackElevation
* dcim.RackReservation
* dcim.Device
* ipam.IPAddress
* ipam.Prefix
* ipam.VRF
* ipam.VLAN
* virtualization.VirtualMachine
Added List View to the following classes:
* circuit.Circuit
* dcim.Site
* dcim.Rack
* dcim.RackReservation
* dcim.Device
* ipam.IPAddress
* ipam.Prefix
* ipam.VRF
* ipam.VLAN
* virtualization.VirtualMachine
2019-02-23 11:09:02 -06:00
dansheps
f78c228c75
Fixes #2813 : Add Filter for TenantGroup to the following Forms and Filter classes:
...
* circuit.Circuit
* dcim.Site
* dcim.Rack
* dcim.RackElevation
* dcim.RackReservation
* dcim.Device
* ipam.IPAddress
* ipam.Prefix
* ipam.VRF
* ipam.VLAN
* virtualization.VirtualMachine
2019-02-23 10:37:30 -06:00
John Anderson
b9d11aa4ca
refactor tag migrations and add changelog fields to tag
2019-02-22 01:32:31 -05:00
John Anderson
fc2bb724fa
initial pass on migrating to custom tag model with color and comments fields
2019-02-20 03:52:47 -05:00
John Anderson
e521508de9
#2350 - added virtual machines and test cases
2019-02-18 22:10:05 -05:00
Jeremy Stretch
9d69f14faa
Implement basic view testing for all models ( #2909 )
2019-02-15 17:02:18 -05:00
John Anderson
613e8f05c2
fixes #2835 - certain model filters did not support the q query param
2019-01-31 13:36:30 -05:00
John Anderson
6dcd48fef1
Virtulization Select2 forms
2019-01-10 17:32:23 -05:00
Jeremy Stretch
aca57ec281
Fixes #2698 : Remove pagination restriction on bulk component creation for devices/VMs
2018-12-19 10:59:12 -05:00
Jeremy Stretch
4da755e75f
Formatting cleanup
2018-11-27 11:57:29 -05:00
Jeremy Stretch
bd7aee7c1f
Closes #2614 : Simplify calls of super() for Python 3
2018-11-27 10:52:24 -05:00
Jeremy Stretch
874acab90f
Merge v2.4.8
2018-11-20 12:28:24 -05:00
Jeremy Stretch
23cde65add
Fixes #2589 : Virtual machine API serializer should require cluster assignment
2018-11-14 10:38:53 -05:00
Jeremy Stretch
bc8dbfde7c
Merge branch 'develop' into develop-2.5
2018-11-12 16:03:52 -05:00
Jeremy Stretch
0c33af2140
Fixes #2558 : Filter on all tags when multiple are passed
2018-11-12 15:48:58 -05:00
Jeremy Stretch
75f0d8ee90
Closes #2578 : Reorganized nested serializers
2018-11-12 11:36:44 -05:00
Jeremy Stretch
ce00226bc6
Merge release v2.4.7 into develop-2.5
2018-11-06 11:19:38 -05:00
Jeremy Stretch
b4998f4b01
Closes #2388 : Enable filtering of devices/VMs by region
2018-11-06 10:31:56 -05:00
Jeremy Stretch
516faac73f
Fixed deprecation warnings from DRF 3.9
2018-11-02 13:48:44 -04:00
Jeremy Stretch
29d546a3f1
Upgraded django-filter to 2.0.0
2018-11-02 13:46:28 -04:00
Jeremy Stretch
22ed4f1b53
Merge release v2.4.6
2018-10-10 09:36:51 -04:00
Jeremy Stretch
259da2d18a
#2487 : Added API tests
2018-10-04 16:20:01 -04:00
John Anderson
1b2e9a6d06
fixes #2484 - Local config context not available on the Virtual Machine Edit Form
2018-10-03 17:16:01 -04:00
Jeremy Stretch
364bbdeab8
Merged release v2.4.5
2018-10-03 11:23:21 -04:00
Jeremy Stretch
aed2a3cd1b
Closes #2438 : API optimizations for tagged objects
2018-09-28 16:44:05 -04:00
Jeremy Stretch
15babeb584
Fixes #2414 : Tags field missing from device/VM component creation forms
2018-09-28 16:26:08 -04:00
Jeremy Stretch
2ee5b2344e
Changelog and misc cleanup
2018-09-28 14:21:49 -04:00
John Anderson
fb5dca2711
Merge branch 'develop' of github.com:digitalocean/netbox into local-config-context
2018-09-18 12:16:07 -04:00
Jeremy Stretch
6cdff955dc
Fixes #2444 : Improve validation of interface MAC addresses
2018-09-18 12:02:59 -04:00
John Anderson
4039753b2f
refactored UI for local config context
2018-09-18 11:52:12 -04:00
John Anderson
0da113b723
implemnted #2392 - local config context for devices and VMs
2018-09-16 00:25:20 -04:00
Jeremy Stretch
2ac60bdf48
Merge branch 'develop' into develop-2.5 (v2.4.4 release)
2018-08-22 12:10:44 -04:00
Jeremy Stretch
2804d89c5e
Fixes #2368 : Record change in device changelog when altering cluster assignment
2018-08-17 14:26:50 -04:00
Jeremy Stretch
29380b1120
Merge branch 'develop' into develop-2.5
2018-08-16 16:31:54 -04:00
Jeremy Stretch
5dce7c4e48
Closes #2356 : Include cluster site as read-only field in VirtualMachine serializer
2018-08-16 11:57:20 -04:00
Jeremy Stretch
980d62d579
Removed Python 2 string compatibility
2018-08-14 11:58:42 -04:00
Jeremy Stretch
17714b0c12
Fixes #2342 : IntegrityError raised when attempting to assign an invalid IP address as the primary for a VM
2018-08-09 16:34:17 -04:00
Jeremy Stretch
db7148350e
Fixes #2321 : Allow explicitly setting a null value on nullable ChoiceFields
2018-08-07 14:05:07 -04:00
Jeremy Stretch
98bdb0cb3c
Fixes #2310 : False validation error on certain nested serializers
2018-08-06 17:40:45 -04:00
Jeremy Stretch
24520717e4
Fixes #2305 : Make VLAN fields optional when creating a VM interface via the API
2018-08-06 10:35:51 -04:00
Jeremy Stretch
bd5e860be0
Refactored the tests to remove a lot of boilerplate
2018-08-03 11:39:26 -04:00
Jeremy Stretch
f1bc88fc0c
Adopt django-taggit-serializer for representation of assigned tags in the API
2018-08-03 09:43:03 -04:00
Jeremy Stretch
4ae7f2337a
Closes #2213 : Added squashed migrations
2018-08-01 14:01:20 -04:00
John Anderson
722d0d5554
Webhook signal refactor - fixes #2282 ( #2260 )
...
Refactor of webhook signaling system to use the same middleware mechanics of Changelogging
2018-07-30 14:23:49 -04:00
Jeremy Stretch
c2416411c1
Renamed ChoiceFieldSerializer and ContentTypeFieldSerializer
2018-07-30 12:41:20 -04:00
Jeremy Stretch
beac676a6e
Cleaned up BulkEditView and BulkDeleteView
2018-07-20 21:18:10 -04:00
Jeremy Stretch
0907a6ce5b
Convert CustomFieldModel from object to abstract model
2018-07-20 19:44:04 -04:00
Jeremy Stretch
208409110f
Added bulk tag addition/removal
2018-07-10 10:00:21 -04:00
Jeremy Stretch
25b36d6d42
Remove separate config-context API endpoints; include rendered config context when retrieving a single device/VM
2018-07-03 12:29:20 -04:00
Jeremy Stretch
cd56e51a61
Closes #1851 : Standardize usage of GetReturnURLMixin
2018-07-02 11:54:41 -04:00
Jeremy Stretch
b9bdd666da
Closes #2200 : Replaced detail_route API view decorator with action (DRF change)
2018-06-29 11:48:21 -04:00
Jeremy Stretch
62989ecb6e
Moved object context rendering to ObjectConfigContextView and standardized the template
2018-06-28 13:48:12 -04:00
Jeremy Stretch
c13e4858d7
Initial work on config contexts
2018-06-27 16:02:34 -04:00
Jeremy Stretch
09212691e2
Added changelog links for organizational models
2018-06-20 14:54:04 -04:00
Jeremy Stretch
ddd878683d
Implemented changelog views
2018-06-20 13:52:54 -04:00
Jeremy Stretch
3c2e0b0b17
Added changelog views
2018-06-14 16:15:14 -04:00
Jeremy Stretch
b556d2d626
Renamed CreatedUpdatedModel to ChangeLoggedModel and applied it to all primary and organizational models
2018-06-13 15:40:16 -04:00
Jeremy Stretch
e4f336a843
Establish tests for the utilities app
2018-06-08 14:32:41 -04:00
Jeremy Stretch
33add12069
Merge branch 'develop' into develop-2.4
2018-06-07 16:23:57 -04:00
John Anderson
836478c166
Implements #81 - webhook event backend ( #1640 )
...
* merge branch develop
* bugfix, signals for virtualization's class wasn't correctly defined
* updated webhooks for 2.4 and cleanup
* updated docs to cover changes to supervisor config
* review changes and further cleanup
* updated redis connection settings
* cleanup settings
2018-05-30 11:19:10 -04:00
Jeremy Stretch
8f9fc8fb51
Added migrations for #132 (tags)
2018-05-22 15:06:47 -04:00
Jeremy Stretch
399a633d9d
Post-release version bump
2018-05-21 16:50:31 -04:00
Erik Hetland
2cdb527df9
Fixing typo in permission check for ClusterView.
2018-05-19 11:50:03 +02:00
Jeremy Stretch
b3350490e7
Implemented tag filtering
2018-05-18 16:24:15 -04:00
Jeremy Stretch
9b3869790d
Implemented tags for all primary models
2018-05-10 12:53:11 -04:00
Jeremy Stretch
57f6d22c64
Merge branch 'develop' into develop-2.4
2018-04-19 11:24:11 -04:00
Jeremy Stretch
b44aa9d32e
Fixes #2014 : Allow assignment of VLANs to VM interfaces via the API
2018-04-18 12:37:20 -04:00
Jeremy Stretch
821fb1e01e
Finished merging writable serializers
2018-04-05 14:12:43 -04:00
Jeremy Stretch
9725f19bae
Code formatting cleanup
2018-03-30 13:57:26 -04:00
Jeremy Stretch
0969c458b3
Closes #1842 : Implement support for Django 2.0
2018-03-30 10:39:22 -04:00
Jeremy Stretch
8bd268d81c
Closes #1944 : Enable assigning VLANs to virtual machine interfaces
2018-03-14 14:53:28 -04:00
Jeremy Stretch
546f17ab50
Closes #1866 : Introduced AnnotatedMultipleChoiceField for filter forms
2018-03-07 14:16:38 -05:00
Jeremy Stretch
6b62720daf
Closes #1910 : Added filters for cluter group and cluster type
2018-03-01 13:22:43 -05:00