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

9354 Commits

Author SHA1 Message Date
d2c3a39ebb 14401 validate rack startion position > 0 2023-12-06 15:16:03 -05:00
b21ed6a334 adds optional classes parameter 2023-12-05 13:51:28 -05:00
9d09916f6e PRVB 2023-11-29 19:32:45 -05:00
04fd45581d Release v3.6.6 2023-11-29 19:16:30 -05:00
ac3fc25dfd Fixes : Fix CustomFieldChoiceSet search filter 2023-11-29 17:20:18 -05:00
82591ad8a1 Fixes : Record a pre-change snapshot when bulk editing objects via CSV 2023-11-29 17:19:35 -05:00
6dddb6c9d2 Fixes : Fix jobs count for reports with a custom name 2023-11-29 17:19:02 -05:00
290aae592d Raises validation error if file path and root are not unique ()
* raises validation error if file path and root are not unique 

* review changes 
2023-11-29 16:25:16 -05:00
ff021a8e4e Adds region hierarchy in templates ()
* initial work to render hierarchical region 

* adds site display 

* cleanup 

* adds display region tag 

* refactored region hierarchy 

* refactored region hierarchy 

* renamed display_region to nested_tree 

* Make render_tree suitable for generic use

* Remove errant item from __all__

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-29 16:20:59 -05:00
3a3d43911c Fixed password was not hashed on REST API update ()
* Fixed password was not hashed on REST API update

* When we updated a user password with a REST API call the password was
  stored in clear in plain text in the database.

* Following code review

* Move test on UserTest class
* Call `super().update()` in overriding `update` method

* Return directly the result of `super().update()`
2023-11-29 15:59:54 -05:00
c43c63a817 14346 fix missing function call convert
In PR  (commit 8224644) _get_report was modified to do the call on the variable without changing the call later on.

This commit fixes that and removes the call on the variable.

Signed-off-by: Josef Johansson <josef@oderland.se>
2023-11-29 15:58:14 -05:00
792b353f64 Fixes : Fix bulk editing of interfaces assigned to VM with no cluster 2023-11-29 15:23:35 -05:00
01ba4ce129 Fixes : Enable export templates for contact assignments 2023-11-29 15:22:41 -05:00
fc7d6e1387 Fixes : Ensure expanded numeric arrays are ordered ()
* Fixes : Ensure expanded numeric arrays are ordered

* Remove redundant casting to
2023-11-28 17:04:10 -05:00
080da68b6a Fixes : Fix custom validation support for DataSource 2023-11-28 17:02:52 -05:00
7d413ea3c2 Fixes : Set order_by accessor for asn_asdot column () 2023-11-28 17:02:07 -05:00
40763b58bd 14299 change webhook timestamp to isoformat ()
* 14299 change timestamp to isoformat

* Omit redundant str() casting

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-28 17:01:03 -05:00
d52a6d3b10 PRVB 2023-11-09 16:04:38 -05:00
41eae1bc19 Release v3.6.5 2023-11-09 15:45:49 -05:00
5c27d29b08 Adds unit to the power port draw ()
* adds unit to the power port draw 

* review changes 

* moved units to header 

* Abbreviate unit for consistency with e.g. PowerFeedTable available_power column

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-09 15:09:16 -05:00
e1bedb8350 restores config revision during cache clear 2023-11-09 14:50:45 -05:00
dd5e20aa1a allow login and logout in maintenance mode 2023-11-09 14:45:47 -05:00
217a9edb4c handles the port in the ip 2023-11-09 14:43:36 -05:00
ad95760ead adds contact group on contact assignment table 2023-11-09 14:12:10 -05:00
57bf2a2f00 fix asn view under asn range 2023-11-09 10:58:28 -05:00
e5c38e0829 Closes : Add IP assignment support when bulk importing services ()
* issue 13022 resolved, ipaddress added into bulk_import form

* validation of ip address for device and virtual machine

* error message modified

* error message modified

* error message modified

* Fix form validation

* Extend bulk import test

---------

Co-authored-by: yash-pal1 <ypal@onemindservices.com>
Co-authored-by: yash-pal1 <ypal@onemindservies.com>
2023-11-09 10:55:55 -05:00
6b89da2233 Closes : Add primary_ip4 and primary_ip6 filters to VirtualMachine and VirtualDeviceContext filtersets ()
* Add primary_ip4 and primary_ip6 filters for VirtualMachine and VirtualDeviceContext filtersets ()

* Add PrimaryIPFilterSet to __all__

---------

Co-authored-by: Artem I. Kotik <artem.i.kotik@ringcentral.com>
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-09 09:56:43 -05:00
092f2b06ab Enhance Virtual Machine and Device Platform Filter with Manufacturer Information ()
* Add manufacturer for filters in the virtual machine and device 

* reverse the filtersets of device and vm

* revert the filtersets of vm

* add advance selector in platform

* remove manufacture from imports
2023-11-09 09:55:44 -05:00
6900097e2d Fixes : Validate the number of front ports to be created 2023-11-09 09:50:54 -05:00
95519b42a0 Adds device and vm to service filter form ()
* adds device and vm to service filter form 

* Tweak labels

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-09 09:13:46 -05:00
dfef89ab88 Fix ordering on JobTable. 2023-11-09 08:50:15 -05:00
0603dd1be4 Adds inventory item children view ()
* adds inventory item children view 

* Use existing child_items relation

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-09 08:47:24 -05:00
1203d761f4 Adds mask length filters on ipaddress ()
* adds mask length filters on ipaddress 

* Change IPaddress mask_length filter to multi-value; extend tests

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-09 08:46:14 -05:00
d2c727c0a2 review changes 2023-11-09 08:36:39 -05:00
ac4b46b502 adds site column to power feeds 2023-11-09 08:36:39 -05:00
6e8ee9db89 review changes 2023-11-09 08:34:41 -05:00
94858ac13f adds parent to inventory item table 2023-11-09 08:34:41 -05:00
b0f2de5bd7 order available columns 2023-11-09 08:07:17 -05:00
60e98324c3 adds inventory items to interface 2023-11-08 12:57:22 -05:00
66b9cdf141 adds import button on the contact assignment table 2023-11-08 12:37:13 -05:00
b3fb393490 14033 raise validation error if A and B term go to same object ()
* 14033 raise validation error if A and B term go to same object

* 14033 move check to cable model clean

* 14033 fix tests
2023-11-01 16:30:10 -04:00
7efbfabc0b PRVB 2023-10-17 13:07:29 -04:00
3fd8e48fac Release v3.6.4 2023-10-17 12:37:14 -04:00
51ef4fb920 Closes : Add a copy-to-clipboard button to the key field of the API token creation form 2023-10-17 11:34:37 -04:00
7983c2590e 14025 fix script name checking ()
* 14025 fix script name checking

* 14025 fix script name checking

* 14025 add file extension validation and simplify get logic

* 14025 match start of string with regex

* 14025 backout changes to model_forms

* 14025 add filepatch checking to reports
2023-10-17 10:57:50 -04:00
d77d45e795 12336 make region API calls atomic ()
* 12336 make region API calls atomic

* 12336 switch to pg locks

* 12336 add locks to all views using mptt models

* 12336 fix ADVISORY_LOCK_KEYS reference

* 12336 review changes

* Tweak advisory lock numbering

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-10-17 10:35:01 -04:00
a24864bc6d 14042 mptt cache count ()
* 14042 fix cache count for mptt child delete

* 14042 add test

* Misc cleanup

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-10-17 10:31:58 -04:00
c671ac2f28 Add dns_name filter on the IP Address page ()
* Add dns_name filter on the IP Address page 

* add dns_name field in the filterset field and remove extra method
2023-10-17 10:06:33 -04:00
18a813aa39 13972 allow filtering of cables if have terminations ()
* 10769 allow filtering of cables if have terminations

* 10769 change to termianted

* 10769 add test case

* 10769 review cleanup
2023-10-17 09:32:42 -04:00
06ed7ac8a5 Fixes: - Fixes bulk disconnecting with multiple components attached to the same cable ()
* Fixes:  - Fixes bulk disconnecting with multiple components attached to the same cable

* Update netbox/dcim/views.py

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>

* Update netbox/dcim/views.py

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>

* Update netbox/dcim/views.py

Co-authored-by: Daniel Sheppard <dans@dansheps.com>

* Code cleanup & i18n fix

* Restore original termination count logic

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-10-13 13:57:58 -04:00