Commit Graph

3005 Commits

Author SHA1 Message Date
Jeremy Stretch
539c9e5ec7 Closes #3471: Disallow raw HTML in Markdown-rendered fields 2019-10-09 14:47:40 -04:00
Jeremy Stretch
ea42ec6a11 Merge pull request #3561 from netbox-community/3560-drf-bootstrap-css
Override DRF's builtin Bootstrap with NetBox's own more recent copy
2019-10-09 08:53:13 -07:00
Jeremy Stretch
ce1c894c8b Closes #3580: Render text and URL fields as textareas in the custom link form 2019-10-09 09:40:24 -04:00
Jeremy Stretch
6b4e065b67 Force checkbox table columns to narrow width 2019-10-07 17:22:35 -04:00
Jeremy Stretch
51c96e475d Closes #3563: Enable editing of individual DeviceType components 2019-10-07 17:08:51 -04:00
Jeremy Stretch
64787181e4 Merge pull request #3565 from ananace/add-infiniband
Added InfiniBand interface form factor
2019-10-07 12:02:06 -07:00
Jeremy Stretch
c9d11edf6d Fixes #3571: Prevent erroneous redirects when editing tags 2019-10-07 14:27:02 -04:00
Jeremy Stretch
c26f5ae17a Fixes #3573: Ensure consistent display of changelog retention period 2019-10-07 14:12:16 -04:00
Jeremy Stretch
45a41bbee7 Fixes #3575: Restore label for comments field when bulk editing circuits 2019-10-07 14:06:41 -04:00
dansheps
bfe55c2dfc Fixes #3574 - Change device to parent in interface edit form vlan filtering logic 2019-10-07 08:54:39 -05:00
Jeremy Stretch
b4acade70d Miscellaneous cleanup 2019-10-04 12:59:10 -04:00
Jeremy Stretch
f47a37ca13 Delete obsolete IFACE_ORDERING constants 2019-10-03 19:53:32 -04:00
Jeremy Stretch
2787f525f8 Closes #3568: Update jQuery library to v3.4.1 2019-10-03 18:53:00 -04:00
Jeremy Stretch
7d5657eec3 Add stdout progress logging to cable migration 2019-10-03 18:49:56 -04:00
Saria Hajjar
c459c7b35e Added InfiniBand interface form factor 2019-10-03 09:22:19 +02:00
Jeremy Stretch
e95ad82725 Override DRF's builtin Bootstrap with NetBox's own more recent copy 2019-10-01 10:11:23 -04:00
Jeremy Stretch
38205bb9c4 Filter by site slug rather than by name 2019-09-27 15:12:16 -04:00
Jeremy Stretch
db1689c73a Closes #3259: Add rack and site filters for cables 2019-09-27 12:18:53 -04:00
Jeremy Stretch
15d7d6b87c Cache A/B termination devices on the Cable model 2019-09-26 17:17:12 -04:00
Jeremy Stretch
d092568fbf Post-release version bump 2019-09-25 13:29:22 -04:00
Jeremy Stretch
6d8d617cbc Releae v2.6.5 2019-09-25 13:24:28 -04:00
Jeremy Stretch
ee0865478e Closes #3515: Enable export templates for inventory items 2019-09-25 12:07:41 -04:00
Daniel Sheppard
057e5ed349 Fixes: #3543 - Adds inline vlan editing to virtual machine interfaces 2019-09-25 10:49:08 -05:00
Jeremy Stretch
0c2c1a3673 Closes #3297: Include reserved units when calculating rack utilization 2019-09-25 10:54:08 -04:00
Daniel Sheppard
6d0ba02a3c Fixes: #3540 - Changed interface edit to use new inline vlan edit fields 2019-09-25 09:28:23 -05:00
Jeremy Stretch
b87689cf27 Closes #3352: Enable filtering changelog API by changed_object_id 2019-09-25 10:11:41 -04:00
Jeremy Stretch
5fc4b398eb Fixes #3435: Change IP/prefix CSV export to reference VRF name instead of RD 2019-09-25 09:39:03 -04:00
Jeremy Stretch
a7fedcfee3 Closes #3529: Enable filtering circuits list by region 2019-09-25 09:21:21 -04:00
Daniel Sheppard
78555903c2 Fix ordering for rack positioning 2019-09-24 15:08:57 -05:00
Jeremy Stretch
38cd09c60f Closes #3524: Enable bulk editing of power outlet/power port associations 2019-09-24 15:27:47 -04:00
Jeremy Stretch
429aaa07b8 Merge pull request #3536 from DanSheps/develop
Fixes: #3464 - Change color picker to dynamic coloring from static CSS
2019-09-24 15:13:11 -04:00
Jeremy Stretch
5dfe6f17eb Fixes #3519: Prevent cables from being terminated to virtual/wireless interfaces 2019-09-24 15:07:54 -04:00
Daniel Sheppard
c6243e63ab Fixes: #3464 - Change color picker to dynamic coloring from static CSS 2019-09-24 09:39:06 -05:00
Daniel Sheppard
2a5e871a62 Fixes: #3531 - Fix FG Color for Rack Role 2019-09-24 08:50:23 -05:00
Daniel Sheppard
8d0d3528d6 Fixes: #3534 - Add none option for untagged vlan field 2019-09-24 08:39:41 -05:00
Jeremy Stretch
eb694f0567 Remove extraneous demo scripts 2019-09-23 09:21:38 -04:00
Daniel Sheppard
8c0166fc1c Fixed thrown error in parseURL 2019-09-19 10:32:47 -05:00
Jeremy Stretch
3c5c31e569 Post-release version bump 2019-09-19 09:36:23 -04:00
Jeremy Stretch
06f911b479 Release v2.6.4 2019-09-19 09:30:16 -04:00
Jeremy Stretch
f426334c2e Closes #3485: Enable embedded graphs for devices 2019-09-18 15:59:52 -04:00
Jeremy Stretch
7f641c77f5 Fixes #3514: Label TextVar fields when rendering custom script forms 2019-09-18 15:39:26 -04:00
Jeremy Stretch
f012c662f0 Fixes #3511: Correct API URL for nested device bays 2019-09-18 14:40:47 -04:00
Jeremy Stretch
8ff80afe70 Fixes #3513: Fix assignment of tags when creating front/rear ports 2019-09-18 14:33:47 -04:00
Daniel Sheppard
b5b99cb3b9 Clean up extra line that snuck in 2019-09-17 15:45:55 -05:00
Jeremy Stretch
aedffce736 Closes #3510: Add minimum/maximum prefix length enforcement for IPNetworkVar 2019-09-17 16:36:36 -04:00
Jeremy Stretch
796917beac Fixes #3501: Fix rendering of checkboxes on custom script forms 2019-09-13 11:45:35 -04:00
Daniel Sheppard
a0d8ce96b2 Fix performance issues when creating/editing interfaces due to unfiltered vlan queryset 2019-09-12 11:13:40 -05:00
Daniel Sheppard
41e66d5427 Using static element to determine brief parameter, corrected to $(element) 2019-09-11 10:10:43 -05:00
Jeremy Stretch
46142affe7 Bump platform name/slug max length to 100 chars (#3318) 2019-09-10 15:50:41 -04:00
Jeremy Stretch
5dd61562f7 Fixes #3489: Prevent exception triggered by webhook upon object deletion 2019-09-09 15:50:10 -04:00
Daniel Sheppard
96738bee9b Fixes: #3318 - Increases length of platform name and slug to 64 characters (#3353) 2019-09-06 13:01:27 -05: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
Daniel Sheppard
7968515af0 Add filter for has local context data (#3159)
* Add filter for has local context data
* Broke out filter and form for re-use
* Fix missing StaticSelect2 import
* Fix missing BOOLEAN_WITH_BLANK_CHOICES import
* Fix class resolution
* Fix field ordering
* Fix PEP8 errors
2019-09-06 11:42:56 -05:00
Jeremy Stretch
c20b8b8cb2 Post-release version bump 2019-09-04 16:28:58 -04:00
Jeremy Stretch
9720aef100 Release v2.6.3 2019-09-04 16:23:06 -04:00
Jeremy Stretch
a40f3b2072 Closes #3454: Enable filtering circuits by region 2019-08-28 12:12:27 -04:00
Jeremy Stretch
3f87bdf5c4 Closes #3456: Enable bulk editing of tag color 2019-08-28 11:56:00 -04:00
Jeremy Stretch
0294f803a1 Fixes #3392: Add database index for ObjectChange time 2019-08-28 10:48:19 -04:00
Jeremy Stretch
21c196444e Simplify changelog cleanup logic 2019-08-28 10:44:05 -04:00
Jeremy Stretch
45f5ec7e60 Add tests for changelog 2019-08-28 10:18:37 -04:00
Jeremy Stretch
a6b81a07dc Merge pull request #3453 from netbox-community/3452-change-logging
Fixes #3452: Queue deletion ObjectChanges until after response is sent
2019-08-28 09:51:54 -04:00
Jeremy Stretch
e6d307ca7d Fix script form rendering 2019-08-28 09:20:19 -04:00
Jeremy Stretch
63dd21ad03 Always include 'commit' option 2019-08-26 17:04:04 -04:00
Jeremy Stretch
c251f32fbc Fixes #3452: Queue deletion ObjectChanges until after response is sent 2019-08-26 16:52:05 -04:00
Jeremy Stretch
0a18c86bfa Merge pull request #3423 from netbox-community/3415-custom-scripts
Add custom scripting
2019-08-26 14:06:22 -04:00
Jeremy Stretch
be9c7ee6f7 Wrap script form inside a panel 2019-08-26 13:53:30 -04:00
Jeremy Stretch
15a0240df0 Fix errant changelog entries when executing a script without committing 2019-08-26 11:59:38 -04:00
Jeremy Stretch
d8a45611d5 Fix typo 2019-08-21 15:46:06 -04:00
John Anderson
68c6c8b642 Merge branch 'develop' into 3428-cache-invalidation 2019-08-20 17:35:54 -04:00
John Anderson
426b0336f9 fix signals update call 2019-08-20 17:20:46 -04:00
John Anderson
362227f265 convert update() calls to save() calls 2019-08-20 17:16:00 -04:00
Jeremy Stretch
ed6dc806a0 Introduce BaseScript for extending Script without creating a new executable script 2019-08-19 14:40:08 -04:00
Jeremy Stretch
1afa97f454 Import Django User model automatically when running nbshell 2019-08-19 11:47:50 -04:00
Jeremy Stretch
39bb119971 Fixes #3421: Fix exception when ordering power connections list by PDU 2019-08-19 11:27:36 -04:00
Jeremy Stretch
9d1516cadc Add tests for Script Variables 2019-08-19 10:41:44 -04:00
Jeremy Stretch
9071fd9254 Closes #3430: Linkify platform field on device view 2019-08-19 09:50:41 -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
c8c6c783b2 Add FileVar for file uploads 2019-08-16 15:27:58 -04:00
Jeremy Stretch
bfd73db5b6 Change fields to field_order 2019-08-15 16:19:25 -04:00
Jeremy Stretch
de689354a6 Merge pull request #3427 from candlerb/candlerb/3426
Improve API error handling when a list is given as a choice value
2019-08-15 15:29:47 -04:00
Brian Candler
9ad8b8331b Improve API error handling when a list is given as a choice value
Fixes #3426
2019-08-15 17:16:24 +01:00
Jeremy Stretch
52ffab980f Closes #3391: Update Bootstrap CSS to v3.4.1 2019-08-15 11:47:57 -04:00
Jeremy Stretch
95693c6565 Fixes #3424: Fix tag coloring for non-linked tags 2019-08-15 11:12:52 -04:00
Jeremy Stretch
c40b630c36 Closes #3386: Add mac_address filter for virtual machines 2019-08-15 11:02:40 -04:00
Jeremy Stretch
f4b2015f1d Add TextVar for large text entry 2019-08-14 16:20:52 -04:00
Jeremy Stretch
7b27af3273 Fix table column widths 2019-08-14 15:46:08 -04:00
Jeremy Stretch
9931d4d1a0 Add markdown rendering for log mesages 2019-08-14 14:38:11 -04:00
Jeremy Stretch
502e745509 Include stack trace when catching an exception 2019-08-14 14:26:13 -04:00
Jeremy Stretch
f0ec068650 Use TreeNodeChoiceField for MPTT objects 2019-08-14 14:03:11 -04:00
Jeremy Stretch
81bb6a59e2 Add convenience functions for loading YAML/JSON data from file 2019-08-14 13:08:21 -04:00
Jeremy Stretch
a752754852 Show script log when an exception occurs 2019-08-14 12:19:36 -04:00
Jeremy Stretch
500eb63d9f Fix notice when form does not require user input 2019-08-14 10:18:25 -04:00
Jeremy Stretch
ce43e5f6ea Record script execution time 2019-08-14 10:12:30 -04:00
Jeremy Stretch
52de9d227a Tweak form display (cosmetic) 2019-08-14 09:40:23 -04:00
Jeremy Stretch
a0d181728a Add IPNetworkVar 2019-08-13 09:48:51 -04:00
Jeremy Stretch
f1e12213e7 Allow user to override module name 2019-08-13 09:09:12 -04:00
Jeremy Stretch
fc9a5c5cd1 Meta.fields should be optional 2019-08-12 16:59:09 -04:00
Jeremy Stretch
90bb0d47df Add option to commit database changes 2019-08-12 14:28:06 -04:00
Jeremy Stretch
ab16af1265 Implemented run_script() wrapper 2019-08-12 13:51:25 -04:00
Jeremy Stretch
eeacd04483 Move script attributes under a Meta class 2019-08-12 13:16:18 -04:00
Jeremy Stretch
72558468ad Closes #3420: Serial number filter for racks, devices, and inventory items is now case-insensitive 2019-08-12 12:10:36 -04:00
Jeremy Stretch
be57e606af Fixes #3422: Prevent navigation menu from overlapping page content 2019-08-12 11:57:48 -04:00
Jeremy Stretch
cad46f81e6 Implemented permissions for scripts 2019-08-12 11:39:36 -04:00
Jeremy Stretch
8312a23056 BooleanVar cannot be required 2019-08-12 11:13:16 -04:00
Jeremy Stretch
1331072d92 Fix form field ordering 2019-08-12 11:13:16 -04:00
Jeremy Stretch
49a23f1fe9 Add options for script vars; include script output 2019-08-12 11:13:16 -04:00
Jeremy Stretch
f602ffbca7 Initial work on custom scripts (#3415) 2019-08-12 11:13:16 -04:00
Jeremy Stretch
8bd8d8249f Add test for device component creation 2019-08-07 17:48:12 -04:00
Jeremy Stretch
3f0fd7f891 Fixes #3405: Move device component creation logic into template models 2019-08-07 17:47:44 -04:00
Jeremy Stretch
b6d8fdbe5e Removed invalid contact email 2019-08-02 15:02:29 -04:00
Jeremy Stretch
8970af8e36 Post-release version bump 2019-08-02 10:31:56 -04:00
Jeremy Stretch
487190ed20 Release v2.6.2 2019-08-02 10:29:10 -04:00
Jeremy Stretch
c88c0f9644 Fixes #3384: Maximum and allocated draw fields should be included on power port template creation form 2019-08-02 09:56:02 -04:00
Jeremy Stretch
7e3cffd4f3 Fixes #3385: Fix power panels list when bulk editing power feeds 2019-08-02 09:43:46 -04:00
Jeremy Stretch
180d7ee34b Merge pull request #3383 from ragzilla/develop
Closes #3367: Add BNC Front/Rear port types and Coaxial cable type.
2019-08-02 09:10:40 -04:00
Matt Addison
84bd72f1b6 Closes #3367: Add BNC Front/Rear port types and Coaxial cable type. 2019-08-01 10:33:29 -04:00
Jeremy Stretch
8d0c9600fc Fixes #3018: Components connected via a cable must have an equal number of positions 2019-07-31 10:12:51 -04:00
Jeremy Stretch
304d34428a Fixes #3289: Prevent position from being nullified when moving a device to a new rack 2019-07-30 17:07:58 -04:00
Jeremy Stretch
92658a6104 Merge pull request #3369 from jlrgraham23/fix-changelog-wording
Indicate when changelog retention configured to be forever.
2019-07-30 16:20:39 -04:00
Daniel Sheppard
bab58992aa Fixes #3370 - Add filter class to VirtualChassis API 2019-07-24 12:22:15 -05:00
Justin L R Graham
f59c065fb4 Indicate when changelog retention configured to be forever. 2019-07-23 13:46:55 -05:00
Jeremy Stretch
99d60dbfbd Closes #3314: Paginate object changelog entries 2019-07-18 21:40:36 -04:00
Jeremy Stretch
b1aa63be72 Fixes #3315: Enable filtering devices/interfaces by multiple MAC addresses 2019-07-18 21:21:56 -04:00
Jeremy Stretch
e6a1a98862 Fixes #3293: Enable filtering device components by multiple device IDs 2019-07-18 20:42:15 -04:00
Jeremy Stretch
f0c06b77c8 Merge pull request #3326 from lassebm/fix-3323
Fixes #3323: Interface Connections view inaccessible with "dcim.view_interface" permission
2019-07-17 16:24:14 -04:00
Jeremy Stretch
5a8cb9c892 Merge pull request #3308 from mmahacek/powerpanel-count
Add Powerpanel count to home page
2019-07-17 16:20:27 -04:00
Jeremy Stretch
a552458105 Merge pull request #3337 from robellegate/fix/docs_digitalocean_repo_links
Replacing references to digitalocean org
2019-07-16 10:18:37 -04:00
Jeremy Stretch
80248d999d Fixes #3342: Fix cluster delete button permissions reference 2019-07-16 10:07:38 -04:00
Robert Ellegate
95bee19161 Replacing references to digitalocean org
s/(?<=:\/\/github.com\/)digitalocean(?=\/netbox)/netbox-community/g
2019-07-10 09:23:43 -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
ad21710114 Fixes #3317: Fix permissions for ConfigContextBulkDeleteView 2019-07-02 09:39:26 -04:00
mmahacek
4d3ac3ec26 Add stats.powerpanel_count 2019-06-28 17:04:42 -07:00
mmahacek
4bf8132dff Add line for PowerPanel count 2019-06-28 17:03:06 -07:00
Jeremy Stretch
b07fc7f3c0 Closes #984: Allow ordering circuits by A/Z side 2019-06-27 12:30:17 -04:00
Jeremy Stretch
70a09bfdba Post-release version bump 2019-06-25 09:44:00 -04:00
Jeremy Stretch
4e6f4ab033 Release v2.6.1 2019-06-25 09:39:30 -04:00
Jeremy Stretch
0eb720cdef Closes #3154: Add virtual_chassis_member device filter 2019-06-24 16:31:21 -04:00
Jeremy Stretch
e1aa2bcdc1 Fix for #3229 2019-06-24 15:48:49 -04:00
Jeremy Stretch
6b988c2f39 Fixes #3269: Raise validation error when specifying non-existent cable terminationss 2019-06-24 15:42:15 -04:00
Jeremy Stretch
75272e7272 Closes #3277: Add cable trace buttons for console and power ports 2019-06-24 14:27:34 -04:00
Jeremy Stretch
70f7319507 Changelog for #3229 2019-06-24 14:22:03 -04:00
Jeremy Stretch
48ac628967 Merge pull request #3232 from hellerve/fix-3229
Filter group by site in rack filter
2019-06-24 14:19:50 -04:00
Jeremy Stretch
fa284c1ade Closes #3281: Hide custom links which render as empty text 2019-06-24 12:20:09 -04:00
Jeremy Stretch
43febe8357 Fixes #3283: Fix rack group assignment on PowerFeed CSV import 2019-06-24 11:10:35 -04:00
Jeremy Stretch
874130861e Fixes #3292: Ignore empty URL query parameters 2019-06-24 11:00:18 -04:00
Jeremy Stretch
9a6b87887b Fixes #3290: Fix server error when viewing cascaded PDUs 2019-06-24 10:05:21 -04:00
Jeremy Stretch
5081486a1f Fixes #3279: Reset the PostgreSQL sequence for Tag and TaggedItem IDs 2019-06-21 17:34:06 -04:00
John Anderson
e2f74df351 Merge pull request #3284 from cimnine/fix_pwd_protected_redis_cache
Fixes Cacheops with a password protected redis
2019-06-21 16:35:50 -04:00
Jeremy Stretch
358ef04887 Fixes #3275: Fix error when adding power outlets to a device type 2019-06-21 16:24:12 -04:00