Commit Graph

729 Commits

Author SHA1 Message Date
Daniel Sheppard
4c5ef573ea Merge pull request #10420 from netbox-community/9497-fix-site-location-nonracked-device-display
Fixes #9497 - Change non-racked filter for sites/locations
2022-09-20 09:48:09 -05:00
Daniel Sheppard
a49f70a3dd Fixes #9497 - Change filter for sites/locations 2022-09-20 09:26:40 -05:00
Jeremy Stretch
cd0f4028cd Fixes #10247: Allow changing selected device/VM when creating a new component (#10312)
* Initial work on #10247

* Continued work on #10247

* Clean up component creation tests

* Move valdiation of replicated field to form

* Clean up ordering of fields in component creation forms

* Omit fieldset header if none

* Clean up ordering of fields in component template creation forms

* View tests should not move component templates to new device type

* Define replication_fields on VMInterfaceCreateForm

* Clean up expandable field help texts

* Update comments

* Update component bulk update forms & views to support new replication fields

* Fix ModularDeviceComponentForm parent class

* Fix bulk creation of VM interfaces (thanks @kkthxbye-code!)
2022-09-15 10:10:32 -04:00
Arthur
e49cdd34ba #9665 review changes 2022-09-01 11:15:23 -07:00
Arthur
e627e42395 #9665 review changes 2022-09-01 11:12:01 -07:00
Arthur
9441c1f5ae #9665 Rack Elevation Sorting Enhancements 2022-08-31 14:42:59 -07:00
Jeremy Stretch
338f2c552f Fixes #10087: Correct display of far end in console/power/interface connections tables (#10117) 2022-08-25 08:46:19 -04:00
jeremystretch
26573be4a5 Merge branch 'develop' into feature 2022-08-16 12:56:49 -04:00
Jeremy Stretch
5dcaa880e9 Merge pull request #9639 from cpund/8723-branch
PR for #8723
2022-08-16 09:10:24 -04:00
Craig Pund
be042f6d9d not necessary to prefetch 2022-08-11 15:16:01 -04:00
jeremystretch
151a09bb4b Merge branch 'develop' into feature 2022-08-08 15:39:03 -04:00
jeremystretch
0d285d9c03 Clean up usages of mark_safe() 2022-08-08 10:47:07 -04:00
jeremystretch
3593fcaa75 Closes #9896: Discontinue arbitrary use of OrderedDict 2022-08-01 16:51:44 -04:00
Kim Johansson
43b2ac4412 Remove deprecated usage of prefetch_related
Fixes #9699
2022-07-30 01:18:30 +02:00
sleepinggenius2
2a52cb2a04 Adds patterned_fields support for bulk components 2022-07-26 17:16:03 -04:00
Marek Zbroch
48c324b51e Typo fix in CableEditView 2022-07-16 09:42:01 +02:00
jeremystretch
58579d8bbc Merge branch 'develop' into feature 2022-07-11 12:58:24 -04:00
jeremystretch
88dcff2a58 Drop extraneous/invalid prefetches 2022-07-11 12:45:53 -04:00
Kim Johansson
6a191ab466 Prefetch Tenant Group on user configurable tables
Prefetch the Tenant Group in views which allows its table to be configured
by the user. This decreases the amount of database queries that are required
to fetch the data.
2022-07-10 17:17:56 +02:00
jeremystretch
3500c3e173 Improve display of related objects in cables list 2022-07-08 13:33:43 -04:00
jeremystretch
0c5cb3069e Cleanup for #9102 2022-07-07 12:48:44 -04:00
Craig Pund
b5689ebaa8 add device bulk rename view and url 2022-06-30 01:38:38 -04:00
jeremystretch
d8ce0030e4 Merge branch 'feature' into 9102-cabling 2022-06-27 12:12:34 -04:00
jeremystretch
4702ca6e7a Closes #4434: Enable highlighting devices within rack elevations 2022-06-24 11:04:38 -04:00
jeremystretch
8a2d363b65 Merge branch 'feature' into 9102-cabling 2022-06-20 15:04:55 -04:00
jeremystretch
c4a9f4faab Fixes #9549: Fix device counts for rack list under rack role view 2022-06-17 14:40:37 -04:00
jeremystretch
9687fd1e1e Merge all cable creation URLs into a single view 2022-05-23 13:22:45 -04:00
jeremystretch
7f502e6122 Merge cable creation/edit views & forms 2022-05-20 16:53:23 -04:00
jeremystretch
485066ddc7 Tests cleanup 2022-05-13 16:29:19 -04:00
jeremystretch
fe36f58046 Test cleanup 2022-05-13 15:34:01 -04:00
jeremystretch
536edca5c3 Update connected_endpoint serializer field to support multiple objects 2022-05-13 11:04:38 -04:00
jeremystretch
15bf7d3012 Update Cable instantiations to match new signature 2022-05-13 09:33:00 -04:00
jeremystretch
19480d3d93 Migrate CablePath to use two-dimensional array 2022-05-12 16:08:44 -04:00
jeremystretch
466e3fc9d2 Restrict A terminations by parent object 2022-05-12 16:08:44 -04:00
jeremystretch
bfa895b2b8 Update cable connection forms 2022-05-12 16:08:44 -04:00
jeremystretch
5286e73c40 Introduce CableTermination model & migrate data 2022-05-12 16:08:44 -04:00
jeremystretch
e88403f8a4 Extend Cable model to support multiple A/B terminations 2022-05-12 16:08:44 -04:00
jeremystretch
f8648e82b4 Allow editing A side termination when creating cable 2022-05-12 16:08:44 -04:00
jeremystretch
f7d52fdf20 Remove termination IDs from cable creation view paths 2022-05-12 16:08:44 -04:00
jeremystretch
919b2a1565 Closes #9260: Apply user preferences to tables under object detail views 2022-05-04 15:46:13 -04:00
Jeremy Stretch
fd1a0f3043 Merge pull request #9067 from jasonyates/FR8920-nonrackeddevices
Limit amount of nonracked devices displayed
2022-04-12 11:38:14 -04:00
Jason Yates
3ef7f903d9 Updating to use a single queryset
Updating to use a single queryset for both template variables
2022-04-10 09:06:14 +01:00
jeremystretch
b2715c9136 Fixes #9055: Restore ability to move inventory item to other device 2022-04-08 09:41:37 -04:00
Jason Yates
8421d0864c Limit amount of nonracked devices displayed
Fixes #8920

Limits the amount of non-racked devices on Site and Location view to 10 and provides a link to the device list this is pre-filtered to the relevant site or location.
2022-04-07 08:21:13 +01:00
jeremystretch
f9f958825e Closes #8973: Display VLAN group count under site view 2022-04-06 20:12:14 -04:00
Daniel Sheppard
159f803acc Fixes #9057 - Fix missing instance counts for module types 2022-04-06 13:46:31 -05:00
jeremystretch
2197315e3b Merge branch 'develop' into feature 2022-03-30 15:45:40 -04:00
Stephan Blanke
ea920136c7 Closes #8163: Add bridge members panel to interface view 2022-03-28 20:37:00 +02:00
jeremystretch
9b8787daa5 Fix cable creation view 2022-03-23 10:55:09 -04:00
jeremystretch
d2f388954d Merge branch 'develop' into feature 2022-03-22 12:57:23 -04:00
jeremystretch
3c0a04ebb5 Fixes #8935: Correct ordering of next/previous racks to use naturalized names 2022-03-22 09:50:38 -04:00
jeremystretch
2980550d62 Rename ObjectEditView.model_form to form 2022-03-21 10:22:30 -04:00
jeremystretch
fdc44c65ee Merge branch 'develop' into feature 2022-03-18 13:17:11 -04:00
Alex Gittings
7945d82bb1 Closes: #8457 - implement nonracked devices on locations and sites 2022-03-18 14:34:42 +00:00
jeremystretch
407b53aaeb Closes #8804: Include module type count on manufacturer view 2022-03-07 13:44:27 -05:00
jeremystretch
138da04cca Fixes #8763: Fix inventory item component assignment 2022-03-03 11:52:36 -05:00
jeremystretch
79ac649746 Closes #8747: Rename ObjectListView action_buttons to actions 2022-02-24 16:33:51 -05:00
jeremystretch
eb44aa2748 Closes #8667: Support position patterning when creating module bays & templates 2022-02-23 13:02:14 -05:00
jeremystretch
58d435022d Clean up component template creation for ModuleTypes 2022-02-18 11:56:49 -05:00
jeremystretch
b4e095d7cc Fixes #8661: Fix ValueError exception when trying to connect a cable 2022-02-16 09:27:16 -05:00
jeremystretch
02f4b84512 Move configure_table() logic to NetBoxTable.configure() 2022-02-09 14:10:54 -05:00
jeremystretch
f067d46de3 Clean up and document object, object list templates 2022-02-07 16:50:17 -05:00
jeremystretch
cf10733051 #7844: Allow installing modules via UI without replicating components 2022-02-04 11:51:30 -05:00
jeremystretch
c8d9089cd3 Closes #8469: Move BaseTable, columns to netbox core app 2022-01-27 15:00:10 -05:00
jeremystretch
e5d3730ad8 Merge branch 'develop' into feature 2022-01-11 16:16:13 -05:00
jeremystretch
eb400bc6b2 Closes #6954: Remember users' table ordering preferences 2022-01-10 14:03:07 -05:00
jeremystretch
40ed1493ef Fixes #8226: Honor return URL after populating a device bay 2022-01-04 13:24:15 -05:00
jeremystretch
bb86910350 Enable the association of inventory item templates with component templates 2021-12-29 16:30:44 -05:00
jeremystretch
d50b564257 Initial work on #8118 2021-12-29 15:37:01 -05:00
jeremystretch
5fe17ba382 Show parent device/VM when creating new components 2021-12-28 15:19:41 -05:00
jeremystretch
c873a30539 #7846: Show assigned component (if any) when creating inventory item 2021-12-28 14:15:06 -05:00
jeremystretch
603080644a Restore front port component creation 2021-12-28 09:53:56 -05:00
jeremystretch
fae148bb7b Update component model forms to use DynamicModelChoiceField query_params for related objects 2021-12-27 21:25:47 -05:00
jeremystretch
7f1ab461c3 Refactor ComponentCreateView to use separate forms for names/labels and model creation 2021-12-27 21:04:29 -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
68e9a20851 Merge branch 'develop' into feature 2021-12-21 11:28:16 -05:00
jeremystretch
7aad435f6d Clean up imports 2021-12-21 10:48:10 -05:00
jeremystretch
2727b3528f Clean up device/devicetype tab views 2021-12-21 10:28:28 -05:00
jeremystretch
a4a4d4d0c6 Merge v3.1.2 2021-12-20 16:28:11 -05:00
jeremystretch
af973ae07e Closes #8083: Removed "related devices" panel from device view 2021-12-18 14:30:28 -05:00
jeremystretch
cb8ce561f3 Misc cleanup 2021-12-17 16:34:51 -05:00
jeremystretch
58fa729de1 Add Module model 2021-12-17 16:12:03 -05:00
jeremystretch
c4665671b9 Fix YAML import for ModuleTypes 2021-12-17 13:28:17 -05:00
jeremystretch
847b4a4dfd Add Module model 2021-12-17 12:18:37 -05:00
jeremystretch
5b4b067eea Add ModuleBay and ModuleBayTemplate models 2021-12-17 09:35:57 -05:00
jeremystretch
4e1609d5a1 Merge branch 'develop' into feature 2021-12-15 10:53:21 -05:00
jeremystretch
5e02d4d3dd Enable HTMX for all ObjectChildrenViews 2021-12-14 15:31:42 -05:00
jeremystretch
42711666dc Update device/VM component views to use ObjectChildrenView 2021-12-14 13:47:40 -05:00
jeremystretch
89359f27f5 Generic view cleanup 2021-12-14 11:28:13 -05:00
jeremystretch
7e679441d7 Clean up site view 2021-12-06 13:43:02 -05:00
jeremystretch
2064805b04 Omit actions column from non-paginated child object tables 2021-12-03 11:07:16 -05:00
Daniel Sheppard
f178ae396b Fix dcim/views.py merge error 2021-11-03 11:36:54 -05:00
Daniel Sheppard
901f08798e Merge branch 'feature' into 6732-asn-model 2021-11-03 08:37:11 -05:00
Daniel Sheppard
a3531474b5 #6732 - Swap ASN M2M to Site model and update some templates/filters 2021-11-02 12:26:06 -05:00
jeremystretch
2ca3716758 Initial work on #6235 2021-11-01 16:56:30 -04:00
Daniel Sheppard
4ff352c2a5 #6732 - Fix imports and other small items 2021-10-29 14:54:55 -05:00
Daniel Sheppard
a66c6dc27c Initial work on #6732 2021-10-24 23:42:47 -05:00
jeremystretch
48b2ac7a97 Closes #7530: Move device type component lists to separate views 2021-10-20 15:04:40 -04:00
jeremystretch
3093c74dd6 Refactor device component views 2021-10-20 14:24:02 -04:00
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