Commit Graph

729 Commits

Author SHA1 Message Date
jeremystretch
8159bf021b Closes #7462: Include count of assigned virtual machines under platform view 2021-10-06 10:12:44 -04:00
jeremystretch
0afd0f51f1 Refactor DCIM forms 2021-09-27 17:09:37 -04:00
jeremystretch
567bd88731 Fixes #7360: Correct redirection URL after removing child device from device bay 2021-09-27 09:58:03 -04:00
jeremystretch
8879e0d9fb Use exclude() when instantiating tables to omit columns 2021-09-17 14:25:02 -04:00
jeremystretch
f2331d09d9 Merge 'detail' tables into primaries for each model 2021-09-17 13:55:32 -04:00
jeremystretch
2e4045199b Closes #7087: Add search/filter forms for all organizational models 2021-09-16 16:04:46 -04:00
jeremystretch
076a254c7c Fixes #7279: Fix exception when tracing cable with no associated path 2021-09-16 08:56:26 -04:00
jeremystretch
90531d20a7 Remove unnecessary component creation templates 2021-08-24 14:51:12 -04:00
Jeremy Stretch
76245dcdbe Improve object list layout (#6907)
* Split object list and filters into tabs

* Use object_list template for connections, rack elevations

* Include custom field filters in grouped filter form

* Annotate number of applied filters on tab

* Rearrange table controls
2021-08-06 15:35:14 -04:00
jeremystretch
061f0d9a2e Merge v2.11.10 2021-07-28 16:26:04 -04:00
jeremystretch
b26c560b24 Fixes #6771: Add count of inventory items to manufacturer view 2021-07-28 10:25:52 -04:00
jeremystretch
481cd17965 Fixes #5627: Fix filtering of interface connections list 2021-07-27 16:21:56 -04:00
jeremystretch
4aaea8cb75 Fix filtering for platforms, tenant groups 2021-07-20 15:39:58 -04:00
jeremystretch
2191249351 Replace CSS-based cable trace diagrams with SVG images 2021-07-14 15:29:04 -04:00
jeremystretch
bad091daee Merge branch 'develop' into feature 2021-06-22 14:30:47 -04:00
jeremystretch
375d088c08 Closes #6620: Show assigned VMs count under device role view 2021-06-22 14:21:41 -04:00
jeremystretch
d9a7aff709 Modify default CSV export to render from tables 2021-06-09 15:02:31 -04:00
Daniel Sheppard
00b4a82ee8 Closes: #5278 - Remove Secrets (#6397)
* Remove Secrets

* #5278: Remove secrets javascript from netbox core

* Remove userkey references

* Fix PEP8

* Remove a few more instances of secrets.  Rebundle

* Remove Secrets

Co-authored-by: checktheroads <matt@allroads.io>
2021-05-17 16:26:02 -04:00
checktheroads
500476226d #2434: Fix database transaction context scoping 2021-05-14 11:21:42 -07:00
checktheroads
e66e8d6ea2 #2434: Apply conditional logic from eccbeea to overridden InterfaceCreateView.post method 2021-05-10 13:58:10 -07:00
checktheroads
b7659d3465 #2434: Refactor ComponentCreateView to use generic form validation method
New validate_form method on ComponentCreateView handles validation generically, which any post() method on ComponentCreateView can use to validate the form but handle the response differently as needed.
2021-05-08 12:01:25 -07:00
checktheroads
963e9f7223 Merge branch 'feature' into feature-2434 2021-05-08 11:08:06 -07:00
jeremystretch
9d5403f11b Fixes #6312: Interface device filter should return all virtual chassis interfaces only if device is master 2021-05-07 09:47:32 -04:00
checktheroads
198623fae3 Closes #2434: Show 'Create & Assign IP Address' Button when Creating Interfaces 2021-04-30 11:13:38 -07:00
jeremystretch
e6b97a9f13 Fixes #6313: Fix device type instance count under manufacturer view 2021-04-30 10:08:15 -04:00
jeremystretch
431cb2a0ad Rename FilterSet modules 2021-04-29 16:48:24 -04:00
jeremystretch
1014555306 Fixes #6289: Fix assignment of VC member interfaces to LAG interfaces 2021-04-27 09:36:48 -04:00
jeremystretch
3317673977 Closes #6161: Enable ordering of device component tables 2021-04-20 20:21:52 -04:00
jeremystretch
b19b79cf71 Closes #6210: Include child locations on location view 2021-04-20 14:15:12 -04:00
jeremystretch
181c2df8a4 Fixes #6173: Fix assigned device/VM count when bulk editing/deleting device roles 2021-04-15 19:53:46 -04:00
jeremystretch
d114534959 Closes #6146: Add bulk disconnect support for power feeds 2021-04-12 15:02:29 -04:00
jeremystretch
554a7b2b7a Closes #6109: Add device counts to locations table 2021-04-08 10:08:50 -04:00
jeremystretch
4316c24518 Include child regions, site groups 2021-04-06 09:42:36 -04:00
jeremystretch
af8a1476ad Move breadcrumb generation to template 2021-04-05 12:06:59 -04:00
jeremystretch
2bb1f60230 Location model cleanup 2021-04-05 11:09:33 -04:00
jeremystretch
d92a8b926c Add child interfaces table to interface view 2021-04-02 17:33:34 -04:00
Jeremy Stretch
ab72000677 Merge branch 'develop' into feature 2021-03-31 17:11:54 -04:00
Jeremy Stretch
0fc8ce2503 Closes #5756: Omit child devices from non-racked devices list under rack view 2021-03-31 15:33:06 -04:00
Jeremy Stretch
26b3c80022 Closes #6001: Paginate component tables under device views 2021-03-31 14:24:05 -04:00
Jeremy Stretch
e49484f273 Add dedicated views for nested group models 2021-03-26 15:07:29 -04:00
Jeremy Stretch
f4953d28ca Add dedicated views for organizational models 2021-03-26 14:44:43 -04:00
Jeremy Stretch
9954ec11ec Merge branch 'develop' into feature 2021-03-26 10:53:21 -04:00
Jeremy Stretch
affcc027f8 Fixes #6060: Fix exception on cable trace in UI 2021-03-26 09:40:51 -04:00
Jeremy Stretch
fa78fe7ca8 Merge branch 'develop' into feature 2021-03-25 16:09:28 -04:00
Jeremy Stretch
4ffd2ba841 Initial work on #151: Object journaling 2021-03-16 15:00:08 -04:00
Jeremy Stretch
c60149a72a Closes #5972: Bulk edit support for organizational models (#5974)
* Enable bulk editing of organizational models

* Enable bulk editing of nested group models

* Changelog for #5972
2021-03-12 16:14:42 -05:00
Jeremy Stretch
a4944f2b97 Closes #5892: Introduce SiteGroup model (#5937)
* Initial work on #5892

* Add site group selection to object edit forms

* Add documentation for site groups

* Changelog for #5892

* Finish application of site groups to config context
2021-03-08 13:28:53 -05:00
Jeremy Stretch
fef9ce9c87 Rename parent attribute on CableTerminations to parent_object 2021-03-05 13:06:21 -05:00
Jeremy Stretch
d1eeee3085 Closes #4971: Allow assigning devices to locations without a rack 2021-03-03 14:28:07 -05:00
Jeremy Stretch
f7d6275959 Closes #5895: Rename RackGroup to Location 2021-03-03 13:30:33 -05:00
Jeremy Stretch
1faf3cadf7 Update object edit template to use fieldsets where possible 2021-02-25 13:51:48 -05:00
Chris Mills
06d2aff1eb Changes to template, view and CablePath class to
indicate to users whether the cable length is
accurate or not.
2021-01-22 16:45:08 +00:00
Jeremy Stretch
68eafb180a Rename get_subquery() to count_related() 2020-12-17 14:47:49 -05:00
Jeremy Stretch
1926a55cd6 Clean up breadcrumbs for device component views 2020-12-02 16:25:38 -05:00
Jeremy Stretch
84fe653306 Merge branch 'develop' into develop-2.10 2020-12-01 11:42:55 -05:00
Jeremy Stretch
0b8eb6e329 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
Daniel Sheppard
6d062ef42d Fixes: #5374 - Fix exception thrown when tracing mid-point 2020-11-24 08:41:48 -06:00
Jeremy Stretch
1d24a7f5e6 Move device template 2020-11-19 16:19:08 -05:00
Jeremy Stretch
caf79dbacb Migrate all ObjectView subclasses to use get_extra_context() 2020-11-19 15:59:11 -05:00
Jeremy Stretch
e5817a926d Update templates to use "object" context var 2020-11-19 13:22:33 -05:00
Jeremy Stretch
ebaf5d5bca Update ObjectChangeLogView to use "object" context var 2020-11-19 11:49:37 -05:00
Jeremy Stretch
a7be281655 Standardize on "object" for ObjectView template context 2020-11-19 11:29:18 -05:00
Jeremy Stretch
2e45bd89ba Separate device component lists into discrete views 2020-11-13 15:00:12 -05:00
Jeremy Stretch
ebea60f263 Relocate and group generic views 2020-11-11 16:07:38 -05:00
Jeremy Stretch
96f6e9ad5d Fix tracing from front/rear ports 2020-11-11 11:48:55 -05:00
Jeremy Stretch
f2cb5a3096 Fix side panel width 2020-11-10 16:00:21 -05:00
Jeremy Stretch
e8ea013066 Ensure consistent inclusion of custom fields for newly-supporting models 2020-11-10 12:33:20 -05:00
Jeremy Stretch
ca274672dd Fix up device component tab navigation & return URLs 2020-11-10 11:46:04 -05:00
Jeremy Stretch
dc8682c721 Fix bulk editing of device components 2020-11-10 09:22:50 -05:00
Jeremy Stretch
5e9ff3a409 Merge branch 'develop' into develop-2.10 2020-11-05 15:33:07 -05:00
Jeremy Stretch
f9913725be Closes #5307: Add a region selector for every site form field 2020-11-04 15:27:41 -05:00
Jeremy Stretch
5ce315aff8 Remove extraneous prefetch_related() calls from object list views 2020-10-30 16:54:41 -04:00
Jeremy Stretch
0f044cc088 Add CablePath.get_path() to prefetch path nodes 2020-10-30 13:32:10 -04:00
Jeremy Stretch
124a43b63f Merge branch 'develop' into develop-2.10 2020-10-30 10:38:05 -04:00
Jeremy Stretch
e4c553f587 Customize device component tables for user 2020-10-29 14:07:36 -04:00
John Anderson
152fe800c7 add support for regions and vms 2020-10-23 01:18:04 -04:00
Jeremy Stretch
d0647fa575 Convert device inventory items list to table 2020-10-16 16:00:25 -04:00
Jeremy Stretch
89f57ffa5d Convert device device bays list to table 2020-10-16 15:51:46 -04:00
Jeremy Stretch
ccf1198bf8 Convert device interfaces list to table 2020-10-16 15:42:48 -04:00
Jeremy Stretch
dda1fefa82 Convert device rear ports list to table 2020-10-16 15:33:39 -04:00
Jeremy Stretch
682a2e0129 Convert device front ports list to table 2020-10-16 15:28:28 -04:00
Jeremy Stretch
363ef7c716 Convert device power outlets list to table 2020-10-16 15:16:36 -04:00
Jeremy Stretch
2a7b118673 Convert device power ports list to table 2020-10-16 15:09:23 -04:00
Jeremy Stretch
ccdad4ac69 Convert device console server ports list to table 2020-10-16 15:01:16 -04:00
Jeremy Stretch
5a0e8cd545 Convert device console ports list to table 2020-10-16 14:39:15 -04:00
Jeremy Stretch
c1fefe135a Merge branch 'develop' into develop-2.10 2020-10-09 13:52:16 -04:00
Jeremy Stretch
8a4f7a2e46 Restore total length count on trace view 2020-10-06 16:58:11 -04:00
Jeremy Stretch
5e1cce8e63 Clean up console/power/interface connections views 2020-10-06 16:15:18 -04:00
Jeremy Stretch
9ce752f8d1 Introduce PathContains lookup to allow filtering against objects in path directly 2020-10-06 09:41:45 -04:00
Jeremy Stretch
cd6b42be63 Extend cable trace view to show related paths 2020-10-05 16:03:30 -04:00
Jeremy Stretch
d7293234c2 Optimize path prefetching 2020-10-05 14:47:21 -04:00
Jeremy Stretch
095f7a9bda Fix up connection lists (pending additional work) 2020-10-05 12:05:29 -04:00
Jeremy Stretch
8c3a6b6fc5 Rename CablePath.is_connected to is_active 2020-10-05 11:13:33 -04:00
Jeremy Stretch
89ca56a975 Remove legacy connection_status fields 2020-10-05 10:47:41 -04:00
Jeremy Stretch
865a2d5c77 Remove legacy connected endpoint fields 2020-10-05 09:56:46 -04:00
Jeremy Stretch
ea5156af96 Optimize console/power/interface connection lists 2020-10-02 21:44:16 -04:00
Jeremy Stretch
4c4a09ae1b Replace legacy trace() method 2020-10-02 14:54:16 -04:00
Jeremy Stretch
4fe4732e8b Fixes #5206: Apply user pagination preferences to all paginated object lists 2020-10-02 13:54:57 -04:00
Jeremy Stretch
57c0de3ed9 Drop support for split paths 2020-10-01 14:24:34 -04:00
Jeremy Stretch
8ed7cfd14b Add GenericRelation to originating cable paths on PathEndpoint 2020-10-01 11:30:03 -04:00
Jeremy Stretch
18c5a3f4d8 Merge v2.9.4 release 2020-09-23 16:11:00 -04:00
Jeremy Stretch
526e26a7a6 Closes #5164: Show total rack count per rack group under site view 2020-09-23 09:46:52 -04:00
Jeremy Stretch
db2be45f1a Fixes #5156: Add missing "add" button to rack reservations list 2020-09-21 15:14:44 -04:00
Jeremy Stretch
5b129dd0dd Closes #4956: Include inventory items on primary device view 2020-09-18 11:35:15 -04:00
Jeremy Stretch
42b17aa9a4 Closes #1846: Enable MPTT for InventoryItem hierarchy 2020-09-18 10:18:03 -04:00
Jeremy Stretch
43a440ce91 Closes #1755: Toggle order in which rack elevations are displayed 2020-09-14 14:22:21 -04:00
Jeremy Stretch
00cdd20681 Merge develop into develop-2.10 2020-09-04 16:09:05 -04:00
Jeremy Stretch
a1ac172db4 Closes #5048: Show the device/VM name when editing a component 2020-09-04 15:10:34 -04:00
Jeremy Stretch
c01a9eb5b8 Fixes #5074: Fix inclusion of VC member interfaces when viewing VC master 2020-08-31 15:34:40 -04:00
Jeremy Stretch
dd06bbcaf6 Closes #4349: Drop support for embedded graphs 2020-08-21 11:57:46 -04:00
Jeremy Stretch
29c77acf87 Fixes #4903: Fix member count when searching for virtual chassis 2020-08-07 08:54:02 -04:00
Jeremy Stretch
e7c61edb37 Merge branch 'develop' into develop-2.9 2020-08-05 09:15:10 -04:00
Jeremy Stretch
5ea0208306 Fixes #4938: Show add, import buttons on virtual chassis list view 2020-08-03 12:52:00 -04:00
Jeremy Stretch
10ad349fbe Fixes #4894: Fix display of device/VM counts on platforms list 2020-07-24 09:16:14 -04:00
Jeremy Stretch
96d058c231 Merge branch 'develop' into develop-2.9 2020-07-21 12:57:02 -04:00
Jeremy Stretch
43a4590014 Closes #4871: Specify ordering for querysets using annotate() to count related objects 2020-07-20 12:07:19 -04:00
Jeremy Stretch
b7de43595d Fixes #4595: Ensure consistent display of non-racked and child devices on rack view 2020-07-16 15:45:27 -04:00
Jeremy Stretch
7448c6b892 #4843: Use subqueries when counting multiple types of related objects 2020-07-10 15:38:54 -04:00
Jeremy Stretch
10469c7f85 Arrange device components within tabs 2020-07-02 15:10:56 -04:00
Jeremy Stretch
662a973fc1 #4416: Provide bulk rename ability for device component templates 2020-07-02 13:58:53 -04:00
Jeremy Stretch
779dc8be86 Merge branch 'develop' into develop-2.9 2020-07-02 10:01:01 -04:00
Jeremy Stretch
b699ca0d38 #4416: Add bulk rename view for InventoryItem 2020-07-01 15:12:05 -04:00
Jeremy Stretch
b33ed1e2e0 #4416: Add bulk_add view for InventoryItems 2020-07-01 14:55:11 -04:00
Jeremy Stretch
bfa1985771 #4416: Add individual & changelog views for InventoryItem 2020-07-01 14:46:12 -04:00
Jeremy Stretch
07a8a11229 #4416: Add individual delete views for organizational objects 2020-07-01 12:08:26 -04:00
Jeremy Stretch
dd55eace23 Extend GetReturnURLMixin to automatically resolve default return URL for querysets 2020-07-01 11:50:31 -04:00
Jeremy Stretch
9f91f20dbd Closes #4807: Add bulk edit ability for device bay templates 2020-06-30 15:22:30 -04:00
Jeremy Stretch
e021fce0a6 Fix some instances where RestrictedQuerySet is evaluated prematurely 2020-06-26 12:22:02 -04:00
Jeremy Stretch
2d935e3c6e Closes #4795: Add bulk disconnect capability for console and power ports 2020-06-25 17:08:51 -04:00
Jeremy Stretch
a93bc52818 Closes #4792: Add bulk rename capability for console and power ports 2020-06-25 14:18:29 -04:00
Jeremy Stretch
9e82fbd54f Update and simplify device component tables 2020-06-25 12:03:44 -04:00
Jeremy Stretch
422db03515 Add individual views for device components 2020-06-25 11:01:18 -04:00
Jeremy Stretch
1ff95932ff Enable CSV import for virtual chassis 2020-06-24 15:29:25 -04:00
Jeremy Stretch
1a52a7b88a Initial work on #2018: Add name to VirtualChassis 2020-06-24 15:21:42 -04:00
Jeremy Stretch
a38b1521e9 Add bulk renaming function for VM interfaces 2020-06-24 10:02:40 -04:00
Jeremy Stretch
0c9f3859ac Retain ip_addresses name for related IPAddress objects 2020-06-22 16:13:18 -04:00
Jeremy Stretch
d2fc8e0466 Initial work on #4721 (WIP) 2020-06-22 13:10:56 -04:00
Jeremy Stretch
8af970401d Fix restriction violations for rack model 2020-06-16 14:53:51 -04:00
Jeremy Stretch
2a09da831e Fix permissions enforcement for VirtualChassisEditView 2020-06-10 16:37:35 -04:00
Jeremy Stretch
b8c048995f Update VirtualChassis views to support ObjectPermissions 2020-06-02 15:33:41 -04:00
Jeremy Stretch
779f75904b Change CableCreateView to use ObjectEditView 2020-06-02 15:15:57 -04:00
Jeremy Stretch
d5f57a41f0 Update ObjectImportView to support ObjectPermissions 2020-06-02 14:23:04 -04:00
Jeremy Stretch
115fbecb44 Update custom napalm_read, napalm_write permissions 2020-06-02 09:46:32 -04:00
Sander Steffann
7291f7a27b Show warning when position stack is not empty after trace 2020-06-02 13:13:41 +02:00
Sander Steffann
3eccbe51ff Add position_stack to returned values from trace() 2020-06-02 13:13:10 +02:00
Jeremy Stretch
9a1d62db2b Update views to restrict all querysets 2020-06-01 11:43:49 -04:00
Jeremy Stretch
0e5b8e0418 Merge branch 'develop-2.9' into 554-object-permissions 2020-05-26 16:42:39 -04:00
Jeremy Stretch
814d073a87 Add additional_permissions to ObjectPermissionRequiredMixin 2020-05-22 12:41:20 -04:00
Jeremy Stretch
89292920e2 Enforce object-level permissions for CableTraceView 2020-05-22 12:05:34 -04:00
Jeremy Stretch
be561442c4 Enforce object-level permissions for ObjectConfigContextView 2020-05-22 11:55:56 -04:00
Jeremy Stretch
cc1de6884c Enforce object-level permissions for DeviceBay population views 2020-05-22 11:52:19 -04:00
Jeremy Stretch
869d8a4f86 Enforce object-level permissions for RackElevationListView 2020-05-22 11:51:04 -04:00
Jeremy Stretch
f191f6b6c7 Transition BulkComponentCreateView to use ObjectPermissionRequiredMixin 2020-05-22 09:23:00 -04:00
Jeremy Stretch
99220399f9 Fix BulkDisconnectView 2020-05-21 16:34:15 -04:00
Jeremy Stretch
915856f27c Transition ComponentCreateView to use ObjectPermissionRequiredMixin 2020-05-21 16:28:11 -04:00
Jeremy Stretch
24d9bdbfcc Transition BulkRenameView, BulkDisconnectView to use ObjectPermissionRequiredMixin 2020-05-21 16:11:46 -04:00
Jeremy Stretch
d5a1b92f28 Introduce ObjectView to enforce object-level permissions for individual object views 2020-05-21 15:53:00 -04:00
Jeremy Stretch
f20b5ec398 Transition BulkDeleteView to use ObjectPermissionRequiredMixin 2020-05-21 15:14:29 -04:00
Jeremy Stretch
4accad4f0f Transition BulkEditView to use ObjectPermissionRequiredMixin 2020-05-21 15:07:20 -04:00
Jeremy Stretch
3cddd4f08a Transition BulkImportView to use ObjectPermissionRequiredMixin 2020-05-21 14:43:27 -04:00
Jeremy Stretch
8c5b0808dd Transition ObjectDeleteView to use ObjectPermissionRequiredMixin 2020-05-21 14:34:40 -04:00
Jeremy Stretch
1c01633f2c Transition ObjectEditView to use ObjectPermissionRequiredMixin 2020-05-21 13:59:19 -04:00
Jeremy Stretch
5ac4c02d66 Transition ObjectListView to use ObjectPermissionRequiredMixin 2020-05-21 13:22:09 -04:00
Jeremy Stretch
e08cb12c4d Move ObjectPermissionRequiredMixin to utilities.views 2020-05-21 13:12:15 -04:00
Jeremy Stretch
6447085d15 Add queryset to all BulkImportViews 2020-05-21 12:01:42 -04:00
Jeremy Stretch
2822ba65da Merge branch 'develop' into develop-2.9 2020-05-15 11:29:07 -04:00
John Anderson
980d8ef6ac fixes #3304 - primary IP address caching invalidation 2020-05-15 02:31:45 -04:00
Jeremy Stretch
ea21567ed6 Implement ObjectPermissionManager 2020-05-11 16:02:42 -04:00
Jeremy Stretch
b3dc7d5b70 Merge branch 'develop-2.9' into 554-object-permissions 2020-05-11 12:48:36 -04:00
Jeremy Stretch
17692bc2cc #4624: Refactor ObjectDeleteView to use a queryset 2020-05-11 12:47:01 -04:00
Jeremy Stretch
1b33b94d3d #4624: Refactor ObjectEditView to use a queryset 2020-05-11 12:37:22 -04:00
Jeremy Stretch
ca3bb7a398 Introduced ObjectPermissionRequiredMixin 2020-05-11 11:51:11 -04:00
Jeremy Stretch
dcfed13e31 Remove descriptions from interface connections list 2020-05-04 14:10:40 -04:00
Jeremy Stretch
8d2483c858 #492: Extend DCIM tables 2020-04-29 10:58:08 -04:00
Jeremy Stretch
5edf196747 #4416: Add bulk edit & delete views for VirtualChassis 2020-04-24 15:20:52 -04:00
Jeremy Stretch
a200694f7f #4416: Establish a dedicated view for VirtualChassis objects 2020-04-24 14:59:38 -04:00
Jeremy Stretch
226638d0f6 Add bulk creation view for rear ports 2020-04-22 11:26:04 -04:00
Jeremy Stretch
9c60a2a661 Introduce model-specific bulk create forms for device components 2020-04-22 11:15:39 -04:00
Jeremy Stretch
05def79739 Adapt tracing view to account for split ends (WIP) 2020-04-15 17:09:04 -04:00
Jeremy Stretch
e836fe3378 Merge branch 'develop' into develop-2.8 2020-03-27 12:53:55 -04:00
Jeremy Stretch
742d5c7e4e Closes #4389: Add a bulk edit view for device bays 2020-03-19 16:32:08 -04:00
Jeremy Stretch
62f2da45c1 Remove unused follow_circuits arg for cable tracing 2020-03-18 21:14:53 -04:00
John Anderson
7d717fb788 Merge branch 'develop' into develop-2.8 2020-03-15 00:18:32 -04:00
Jeremy Stretch
daa2408b73 Closes #4369: Add a dedicated view for rack reservations 2020-03-13 13:53:44 -04:00
Jeremy Stretch
f1b25fbd7d Closes #4362: Standardize URL for creation of RackReservations 2020-03-12 17:43:11 -04:00
Jeremy Stretch
b2b15ebdd1 Implement nested RackGroups 2020-03-11 14:40:29 -04:00
Jeremy Stretch
c3ede657cf Fixes #4337: Allow bulk editing/deletion of all device components matching a query 2020-03-10 10:18:48 -04:00
Jeremy Stretch
66eaa9c019 Extend BulkImportView._save_obj to pass request context 2020-03-09 12:39:07 -04:00
Jeremy Stretch
45ffdbfe73 Started on #4325 (WIP) 2020-03-06 17:14:26 -05:00
Jeremy Stretch
247f6d6974 Fixes #4323: Add bulk edit view for power panels 2020-03-06 16:05:26 -05:00
Jeremy Stretch
239ce16e40 Remove extraneous prefetches from racks queryset 2020-02-25 12:35:27 -05:00
Jeremy Stretch
55a6b19afb Fixes #4196: Fix exception when viewing LLDP neighbors page 2020-02-18 16:21:50 -05:00
Jeremy Stretch
af046ecb0e Clean up TODO notes 2020-02-14 13:30:53 -05:00
Jeremy Stretch
ebda443888 Migrate extras views to use common object list template 2020-02-13 16:39:38 -05:00
Jeremy Stretch
b586f81e57 Migrate DCIM views to use common object list template 2020-02-13 14:07:15 -05:00
Jeremy Stretch
e961aa58b9 Closes #4129: Add individual deletion views for device type components 2020-02-10 11:43:51 -05:00
Jeremy Stretch
62d548d48f Enable bulk edit/delete views for all device components 2020-02-06 20:58:14 -05:00
Jeremy Stretch
a37e1cc01e Add bulk edit views for DeviceType components 2020-02-06 15:29:10 -05:00
Jeremy Stretch
3202cbb248 Overhaul device component template creation views/URLs 2020-02-06 13:13:40 -05:00
Jeremy Stretch
626205d60d Rename device component edit URLs 2020-02-06 12:18:53 -05:00
Jeremy Stretch
62cf93fe12 Rename component template deletion URLs 2020-02-06 12:16:28 -05:00
Jeremy Stretch
cbcccc7377 Introduce InventoryItemCreateView to bring inventory items up to par with other components 2020-02-06 10:59:13 -05:00
Jeremy Stretch
4ee713c54f Move component bulk creation views to new URLs 2020-02-05 12:36:38 -05:00
Jeremy Stretch
0987680d0c Adapt BulkEditView to not require a parent object for device components 2020-02-04 18:08:40 -05:00
Jeremy Stretch
c1e02af946 Move component bulk delete views to new URLs 2020-02-04 16:06:55 -05:00
Jeremy Stretch
28d2991471 Fixes #4008: Toggle rack elevation face using front/rear strings 2020-01-24 15:28:15 -05:00
Jeremy Stretch
5bb99d30bc Closes #3310: Pre-select site/rack for B side when creating a new cable 2020-01-22 16:07:09 -05:00
Jeremy Stretch
a3bb57f130 Change DeviceType export from CSV to YAML 2020-01-13 15:10:16 -05:00
Jeremy Stretch
765ff6a126 Rename filter variables for utility views 2020-01-09 20:57:13 -05:00
Jeremy Stretch
dbaeac67b8 Renamed dcim FilterSets 2020-01-09 20:30:40 -05:00
Jeremy Stretch
1478cb5a52 Merge branch 'develop' into develop-2.7 2020-01-09 15:27:06 -05:00
Saria Hajjar
6d5342619f Fixes #3440: Total cable trace length 2020-01-08 10:49:58 +00:00
Saria Hajjar
bb1bb88727 Fixed #3187: Rack multi-selection field 2020-01-04 13:30:31 +00:00
Jeremy Stretch
aa4a80b87b Addressed lingering TODOs 2019-12-11 17:07:56 -05:00
hellerve
cbd9731a37 dcim: add rack-elevations api endpoint (references #2248) 2019-12-08 17:58:20 +01:00
Jeremy Stretch
ad9d33550f Closes #3731: Change Graph.type to a ContentType foreign key field 2019-12-06 10:32:59 -05:00
Daniel Sheppard
75e47fa00b Add list view for device components (#3719)
* Initial Work on #3564

* #3564 - Fixup issue with filter on interface

* #3564 - Fix PEP8 errors

* #3564 - Finalize fields, readjust order, reduce repetition

* #3564 - Update Changelog

* #3564 - Fix extra space

* #3564 - Change interface table ordering

* #3564 - Minor cleanup

* #3564 - Add Import Links

* Fix PEP8
2019-12-05 17:10:49 -05:00
Sander Steffann
9b9a9bf8f5 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
01ac6d560d Merge branch 'develop' into develop-2.7 2019-11-01 16:19:36 -04:00
Jeremy Stretch
5360aa9593 Closes #3652: Limit next/previous rack by assigned rack group 2019-10-29 15:17:00 -04:00
Jeremy Stretch
917995e868 Merge pull request #3621 from netbox-community/451-devicetype-import
Enable YAML/JSON-based DeviceType import
2019-10-17 16:43:15 -04:00
Jeremy Stretch
531edc21f3 Merge branch 'develop' into 451-devicetype-import 2019-10-10 13:50:57 -04:00
Jeremy Stretch
5d179d54d1 Merge branch 'develop' into develop-2.7 2019-10-10 13:41:10 -04:00
Jeremy Stretch
51c96e475d Closes #3563: Enable editing of individual DeviceType components 2019-10-07 17:08:51 -04:00
Jeremy Stretch
3d2e535866 Enforce object creation permissions 2019-10-01 16:54:10 -04:00
Jeremy Stretch
02ecb22c24 Adopted a different approach to importing related objects 2019-09-27 16:51:12 -04:00
Jeremy Stretch
f2cf335e7c Remove legacy CSV-based DeviceType import 2019-09-24 16:03:10 -04:00
Jeremy Stretch
a8a2a786a1 Extend DeviceType import to include related objects 2019-09-20 14:02:14 -04:00
Jeremy Stretch
429fe9223a Merged v2.6.4 2019-09-20 08:35:14 -04:00
Jeremy Stretch
f426334c2e Closes #3485: Enable embedded graphs for devices 2019-09-18 15:59:52 -04:00
Jeremy Stretch
04ecd5e147 Initial work on JSON/YAML-based DeviceType import 2019-09-13 16:18:29 -04:00
Daniel Sheppard
5965a42979 Add in in-line vlan editing and Bulk vlan editing (#3350)
* Fixes #3341 - Added in-line vlan editing
* Fixes #2160 - Added bulk vlan editing

Inconsequential behaviour changes:

* APISelect can now take "full=True" to return a non-brief set
* Select2 will no group by "group & site, group, site, global" if full=True is set in APISelect
2019-09-06 12:45:37 -05:00
Jeremy Stretch
212252d0ea Merge v2.6.3 2019-09-04 16:45:33 -04:00
John Anderson
362227f265 convert update() calls to save() calls 2019-08-20 17:16:00 -04:00
John Anderson
7dce9908ae remove blank line after update call 2019-08-19 02:11:54 -04:00
John Anderson
8bd1a48973 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
0674e9572f Closes #2745: Remove topology maps 2019-08-08 21:33:20 -04:00
Lasse Bang Mikkelsen
66b6e25d8e Fixes #3323: Interface Connections view inaccessible with "dcim.view_interface" permission 2019-07-04 17:37:28 +02:00
Jeremy Stretch
31ed16335a Merged v2.5.13 2019-05-31 21:37:41 -04:00
Jeremy Stretch
7aabb6fa32 Closes #3151: Add inventory item count to manufacturers list 2019-05-29 15:20:36 -04:00
TakeMeNL
c07652d5d1 Closes #3156: Add site link to rack reservations overview 2019-05-29 16:08:24 +02:00
Alexander Olofsson
a27f02fca4 Fixes #3206: Unable to connect to rear ports 2019-05-22 19:58:26 +02:00
Jeremy Stretch
29aab8611f Closes #3183: Enable bulk deletion of sites 2019-05-16 20:24:55 -04:00
Jeremy Stretch
ec9a0ab2f7 Fixes #3140: Add bulk edit capability for power outlets and console server ports 2019-05-02 13:56:30 -04:00
Jeremy Stretch
183721d067 Fixes #3125: Fix exception when viewing PDUs 2019-04-30 12:24:53 -04:00
Jeremy Stretch
5180a14bbc PowerFeed list improvements 2019-04-19 13:43:09 -04:00
John Anderson
65f357ff85 change cacheing to use cacheops 2019-04-17 12:29:21 -04:00
John Anderson
0596a9a160 move caching to views 2019-04-15 14:41:04 -04:00
Jeremy Stretch
10f6b96b02 Enforce view permissions for UI views 2019-04-11 17:27:38 -04:00
Jeremy Stretch
c67464fc55 Provide individual views for each type of cable connection 2019-04-09 16:49:04 -04:00