Commit Graph

3309 Commits

Author SHA1 Message Date
Saria Hajjar
3b44d86138 Select2 for device field 2020-01-02 17:46:37 +00:00
Jeremy Stretch
9635e3abe4 Merge pull request #3818 from hSaria/2233-move-inventoryitem
Closes #2233: Ability to move inventory items between devices
2020-01-02 11:55:18 -05:00
Saria Hajjar
857eb9774e Templatized show_available toggle 2020-01-02 16:29:11 +00:00
Saria Hajjar
2b2dcdf47a Added default to cookie 2020-01-02 16:19:12 +00:00
Saria Hajjar
fabac288a0 is not None not needed as the value 'false' is a string 2020-01-02 16:13:47 +00:00
Jeremy Stretch
a7ec448ea3 Merge pull request #3820 from hSaria/3819-cf-boolean-select2
Select2 for custom fields
2020-01-02 10:11:32 -05:00
Jeremy Stretch
c304f9f5ae Merge pull request #3816 from hSaria/3815-select2-width
Fixes #3815: Select2 width handling via theme
2020-01-02 10:08:56 -05:00
Jeremy Stretch
67d102bd5d Merge pull request #3813 from hSaria/3812-optimize-select-api
Fixes #3812: Only preload selected options for API-based select
2020-01-02 10:05:06 -05:00
Jeremy Stretch
623bfcef3d Fix for #3822 2020-01-02 09:47:02 -05:00
Jeremy Stretch
92218dcc1c Fixes #3822: Fix exception when editing a device bay (regression from #3596) 2020-01-02 09:26:38 -05:00
hSaria
eff6fe188f Merge branch 'develop' into 2365-show-available-toggle 2020-01-02 09:18:53 +00:00
Saria Hajjar
350834c2bf Fixes #2365: Toggle for showing available prefixes/ip addresses 2020-01-02 09:16:18 +00:00
Saria Hajjar
3398ad9e0e Select2 for custom fields 2020-01-01 23:46:51 +00:00
Saria Hajjar
5d121a4ef4 Ability to move inventory items between devices 2020-01-01 23:28:20 +00:00
Saria Hajjar
0c1da66be2 Added theme to select2 of tags 2020-01-01 21:14:38 +00:00
Saria Hajjar
c28e625a18 Turn off Select2 static width calculation 2020-01-01 21:01:08 +00:00
Saria Hajjar
2421d6d6ed More informative error message 2020-01-01 19:53:13 +00:00
Saria Hajjar
da1d1e068e Filter VLANs to only those in the current site or global 2020-01-01 17:34:26 +00:00
Saria Hajjar
d3ac75e45a Removed no-longer-used choices (now handled via API-based select) 2020-01-01 16:43:21 +00:00
Saria Hajjar
cc9aa2083f Comment clarification 2020-01-01 16:04:08 +00:00
Saria Hajjar
12b93de987 Fixes #3812: Only preload selected options for API-based select 2020-01-01 15:54:00 +00:00
Saria Hajjar
3b1808d9fd Removed trailing space 2020-01-01 12:09:51 +00:00
Jeremy Stretch
0c68630725 Close #2892: Extend admin UI to allow deleting old report results 2019-12-31 16:11:47 -05:00
Saria Hajjar
4b2ba171ee Clean tagged VLANs 2019-12-31 20:47:13 +00:00
Jeremy Stretch
efbd6024b5 Closes #3062: Add assigned_to_interface filter for IP addresses 2019-12-31 15:24:00 -05:00
Jeremy Stretch
56fca9414d Closes #3461: Fail gracefully on custom link rendering exception 2019-12-31 15:04:56 -05:00
Jeremy Stretch
22bb9f42a6 Introduce render_jinja2() convenience function 2019-12-31 14:00:55 -05:00
Jeremy Stretch
8e0055ca7e Fixes #3106: Restrict queryset of chained fields when form validation fails 2019-12-31 12:41:02 -05:00
Jeremy Stretch
613d6c3a74 Fixes #3811: Fix filtering of racks by group on device list 2019-12-31 11:35:18 -05:00
Jeremy Stretch
eb88141d12 Fixes #3809: Filter platform by manufacturer when editing devices 2019-12-31 11:25:42 -05:00
Jeremy Stretch
d081ed088a Merge pull request #3804 from hSaria/3803-svg-logo
Fixes 3803
2019-12-30 14:12:44 -05:00
hSaria
2cb113f005 Converted text to path 2019-12-30 18:28:12 +00:00
Jeremy Stretch
842508b8f2 Merge branch 'develop' into 3762-datetime-selectors 2019-12-30 12:31:50 -05:00
Jeremy Stretch
17b5dd6365 Merge pull request #3807 from hSaria/3712-scroll-offset
Fixes 3712
2019-12-30 11:40:43 -05:00
Saria Hajjar
0a9fa94b99 Account for the header when hash-scrolling 2019-12-29 21:20:02 +00:00
Saria Hajjar
03685f6d20 Fixed Y-coordinate off by 10 2019-12-29 14:06:41 +00:00
Saria Hajjar
fac14f6f16 Fixes #3803 2019-12-29 13:41:00 +00:00
Saria Hajjar
aa75fd0614 Add datetime widgets 2019-12-28 22:55:00 +00:00
Saria Hajjar
c7ac52a6de Load flatpickr using selectors (classes) 2019-12-28 21:33:07 +00:00
Saria Hajjar
f9a92c5afb Include Flatpickr library globally 2019-12-28 21:32:40 +00:00
Saria Hajjar
7a26caf07d Flatpickr library statics 2019-12-28 21:31:21 +00:00
kobayashi
ca4f71dd55 implement 3788 2019-12-27 16:17:17 -05:00
Sander Steffann
06c4b7c2b9 Fix values of mode field 2019-12-27 20:42:16 +01:00
Jeremy Stretch
5041e76d47 Merge pull request #3793 from struppinet/develop
Closes #3663: add Filter Tests
2019-12-27 14:14:55 -05:00
Jeremy Stretch
190ae360ed Fixes #3695: Include A/Z termination sites for circuits in global search 2019-12-27 14:04:03 -05:00
struppi
2940e84346 Closes #3663: improve tests 2019-12-26 22:21:05 +01:00
Jeremy Stretch
62d2a6fb6c Merge pull request #3775 from steffann/3705-make-current-user-available-in-custom-scripts
Add request to Custom Script run, if receiver supports it
2019-12-26 10:04:07 -05:00
struppi
127b54b8b8 Closes #3663: fix PEP errors 2019-12-26 12:26:41 +01:00
struppi
49e1723ca2 Closes #3663: add Filter Tests 2019-12-25 18:41:59 +01:00
Sander Steffann
59b168062a Implement request passing as a property of Script 2019-12-19 23:35:18 +01:00
Jeremy Stretch
0cfc27b58b Fixes #3780: Fix AttributeError exception in API docs 2019-12-19 14:04:18 -05:00
Jeremy Stretch
48a6c003be Post-release version bump 2019-12-16 16:33:31 -05:00
Jeremy Stretch
1ec879a9b1 Release v2.6.9 2019-12-16 16:30:20 -05:00
Jeremy Stretch
40a204acd0 Merge pull request #3764 from kobayashi/3679
fix 3757
2019-12-13 15:57:13 -05:00
Jeremy Stretch
3506f93cd7 Introduced clone, edit, and delete buttons 2019-12-13 15:54:50 -05:00
kobayashi
dee2139a19 fix 3679 2019-12-13 14:42:10 -05:00
Jeremy Stretch
b3b3ae3192 Merge pull request #3763 from hSaria/3761-token-copy-button
Fixes #3761: copy button for tokens
2019-12-13 14:16:41 -05:00
Jeremy Stretch
b1863c6ffd Fixes #2358: Respect custom field default values when creating objects via the REST API 2019-12-13 14:15:48 -05:00
hSaria
e78ea815f9 Fixes #3761: copy button for tokens 2019-12-13 18:06:14 +00:00
Jeremy Stretch
511768692b Fixes #2170: Prevent the deletion of a virtual chassis when a cross-member LAG is present 2019-12-13 11:36:31 -05:00
Jeremy Stretch
943fff2285 Closes #3441: Move virtual machine results near devices in global search 2019-12-13 10:37:58 -05:00
Jeremy Stretch
3374c5b042 Closes #3152: Include direct link to rack elevations on site view 2019-12-13 10:12:46 -05:00
Jeremy Stretch
cf47170cde Remove obsolete initial_data fixtures (no longer maintained) 2019-12-12 14:30:43 -05:00
Jeremy Stretch
e61a79acb7 Fix up the installation docs 2019-12-12 14:27:12 -05:00
Jeremy Stretch
9782402b09 Add view tests for device components 2019-12-12 11:58:57 -05:00
Jeremy Stretch
cf718b2c40 Add virtualization CSV import tests 2019-12-12 11:34:02 -05:00
Jeremy Stretch
7659366479 Add tenancy CSV import tests 2019-12-12 11:29:41 -05:00
Jeremy Stretch
7c3f26e995 Add secrets CSV import tests 2019-12-12 11:26:48 -05:00
Jeremy Stretch
f40ca96fb0 Add IPAM CSV import tests 2019-12-12 10:51:17 -05:00
Jeremy Stretch
5db4b1661d Add DCIM CSV import tests 2019-12-12 10:30:15 -05:00
Jeremy Stretch
17cf438a4c Add CSV import tests for circuits 2019-12-12 10:08:49 -05:00
John Anderson
fb669bbbb4 fixed svg gradient scaling and css flickering issue 2019-12-12 00:30:22 -05:00
Jeremy Stretch
81cabc72a6 Closes #3706: Increase available_power maximum value on PowerFeed 2019-12-11 21:12:18 -05:00
Jeremy Stretch
76ab67e903 Tweak elevation font 2019-12-11 21:03:24 -05:00
Jeremy Stretch
858d6e89dc Fix bug with rendering devices taller than 1U 2019-12-11 20:19:01 -05:00
Jeremy Stretch
12a328dd93 Change render_format to render 2019-12-11 20:05:16 -05:00
Jeremy Stretch
4a0df78626 Fix bug in migration 2019-12-11 20:01:10 -05:00
John Anderson
c86b9267f5 change render_format to render for svg elevations 2019-12-11 17:33:58 -05:00
Jeremy Stretch
6f2d36c9ac Rack elevation endpoint should return JSON by default; fix typo 2019-12-11 17:17:20 -05:00
Jeremy Stretch
aa4a80b87b Addressed lingering TODOs 2019-12-11 17:07:56 -05:00
Jeremy Stretch
1ffc40e8f0 CSVChoiceField should default to a blank string instead of None 2019-12-11 17:04:48 -05:00
Jeremy Stretch
cfe79dc6e2 Fix bug left over from work on #3569 2019-12-11 16:16:14 -05:00
Jeremy Stretch
1cb02c801d Merge pull request #3755 from netbox-community/3664-configcontext-tags
3664 configcontext tags
2019-12-11 16:10:48 -05:00
Jeremy Stretch
a5476108ee Represent and assign ConfigContext tags by their slugs 2019-12-11 16:04:43 -05:00
Jeremy Stretch
5243334508 Cleanup for #3664 2019-12-11 15:55:33 -05:00
Jeremy Stretch
c7232674a1 Introduce is_taggable utility function for identifying taggable models 2019-12-11 15:52:35 -05:00
John Anderson
3fe39794f1 Merge pull request #3754 from netbox-community/2248-svg-rack-elevations
2248 svg rack elevations
2019-12-11 14:26:32 -05:00
Jeremy Stretch
2c95b95d67 Merge pull request #3752 from kobayashi/3664
implement 3664
2019-12-11 14:14:48 -05:00
John Anderson
21cd260a6c review updates to svg rendering 2019-12-11 13:39:10 -05:00
Jeremy Stretch
7cef5bf44c Added import error handling and config vlaidation warning for store config 2019-12-11 10:51:32 -05:00
Sander Steffann
e85889a405 Implement storage configuration as suggested by @jeremystretch 2019-12-11 16:09:32 +01:00
John Anderson
672afac981 drf-yasg updates for rack elevations 2019-12-11 09:45:08 -05:00
Sander Steffann
837db7708a Merge branch '1814-Ability_to_use_object_store_for_images' of github.com:steffann/netbox into 1814-Ability_to_use_object_store_for_images 2019-12-11 15:23:47 +01:00
Sander Steffann
c895aae98e Fix code for PEP8 2019-12-11 15:19:32 +01:00
Sander Steffann
4aeca05ea1 Add support for S3 storage for media 2019-12-11 15:19:32 +01:00
kobayashi
6f4eeaa83a implement 3664 2019-12-11 04:58:42 -05:00
hSaria
3d9a779241 Fixes 3749 attribute error 2019-12-11 07:03:39 +00:00
Jeremy Stretch
3f9e049822 Updated static resources 2019-12-10 15:56:52 -05:00
Jeremy Stretch
01adf446ef Add deprecation warning for Python 3.5 2019-12-10 13:44:45 -05:00
Jeremy Stretch
20feca6609 Add description field to CircuitType (#3655) 2019-12-10 13:25:14 -05:00
Jeremy Stretch
8d496b0571 Add description field to SecretRole model (#3655) 2019-12-10 13:03:09 -05:00
Jeremy Stretch
26599d77d8 Add description field to Role model (#3655) 2019-12-10 12:59:10 -05:00
Jeremy Stretch
29f1201934 Add description field to RackRole and DeviceRole models (#3655) 2019-12-10 12:53:28 -05:00
Jeremy Stretch
08ad1ec44b Fix inclusion of legacy IDs on choice fields 2019-12-10 12:07:54 -05:00
Jeremy Stretch
82ae419731 Merge branch 'develop' into develop-2.7 2019-12-10 11:51:10 -05:00
Jeremy Stretch
317b32766d Post-release version bump 2019-12-10 10:50:46 -05:00
Jeremy Stretch
5b0455b2a0 Release v2.6.8 2019-12-10 10:42:48 -05:00
Jeremy Stretch
dc53a3e94e Cable.status to slug (#3569) 2019-12-10 09:55:10 -05:00
John Anderson
c9c42bdb9a removed rack elevations viewset 2019-12-10 03:19:26 -05:00
John Anderson
29f28449b1 initial cleanup of rack elevations 2019-12-10 03:18:10 -05:00
John Anderson
877d8d7b7b Merge branch 'develop-2.7' into 2248-svg-rack-elevations 2019-12-10 02:59:04 -05:00
Jeremy Stretch
6b51d62474 Merge pull request #3740 from netbox-community/2669-device-vm-names
Allow non-unique device and VM names
2019-12-09 17:26:32 -05:00
Jeremy Stretch
19b8596443 Fixes #3644: Fix exception when connecting a cable to a RearPort with no corresponding FrontPort 2019-12-09 15:42:04 -05:00
Jeremy Stretch
c95fa9485a Remove deprecated context parameter from from_db_value 2019-12-09 12:32:51 -05:00
Jeremy Stretch
ae0a5da6bc Omit default uniqueness validator from VirtualMachineSerializer, which implies required fields 2019-12-09 12:11:42 -05:00
Jeremy Stretch
b8dfbc951f #2269: Allow non-unique VirtualMachine names 2019-12-09 11:59:30 -05:00
Jeremy Stretch
c9f409a1bb #2269: Allow non-unique Device names 2019-12-09 11:41:03 -05:00
Jeremy Stretch
1301ab9cb7 #3722: Tweak ordering of permitted characters to avoid creating a regex range 2019-12-09 10:02:56 -05:00
John Anderson
0dfddeff6b update openapi field type for choice field value fields to string 2019-12-09 00:41:43 -05:00
hellerve
7dbac272d9 dcim api: fix face default value in rackviewset 2019-12-08 18:24:13 +01:00
hellerve
23304476ba dcim api: add feedback from @jeremystretch to rack elevations api 2019-12-08 18:14:59 +01:00
hellerve
26006c1306 dcim: make linter happy 2019-12-08 17:59:40 +01:00
hellerve
23ecdf7f1b tests: update to reflect absence of utility functions 2019-12-08 17:59:40 +01:00
hellerve
ad0a182201 dcim: remove elevation getters 2019-12-08 17:59:38 +01:00
hellerve
23ab34141c css: purge outdated rack styling 2019-12-08 17:58:36 +01:00
hellerve
4cd18e4e19 dcim: refactor reservations and make them resizable 2019-12-08 17:58:21 +01:00
hellerve
589c4c4e7a dcim: add inline stylesheet to rack elevation api view 2019-12-08 17:58:21 +01:00
hellerve
39cc9a7f43 dcim: fix fonts & texts in svg 2019-12-08 17:58:21 +01:00
hellerve
7defacfd7d dcim: make front and rear work (references #2248) 2019-12-08 17:58:21 +01:00
hellerve
cbd9731a37 dcim: add rack-elevations api endpoint (references #2248) 2019-12-08 17:58:20 +01:00
Jeremy Stretch
afcf796128 ClusterForm should inherit from TenancyForm 2019-12-06 16:47:29 -05:00
Jeremy Stretch
9719098f6b Closes #648: Pre-populate forms when selecting "create and add another" 2019-12-06 16:40:39 -05:00
Jeremy Stretch
beed4c2cb8 Implement tag replication for #33 2019-12-06 16:22:56 -05:00
Jeremy Stretch
ef79579119 Closes #33: Add ability to clone objects (pre-populate form fields) 2019-12-06 16:13:52 -05:00
Jeremy Stretch
2de3e579a6 #3720: Update migration to add powerfeeds to termination_type limit list (does not impact database) 2019-12-06 12:29:31 -05:00
Jeremy Stretch
880f248d26 #3722: Update migration with new validator (does not impact database) 2019-12-06 12:19:29 -05:00
Jeremy Stretch
511d0fbed0 Default to localhost in example Redis configs (needed for CI to work) 2019-12-06 12:00:51 -05:00
Jeremy Stretch
3eb2c631c7 Closes #3408: Remove WEBHOOKS_ENABLE configuration setting 2019-12-06 11:52:28 -05:00
Jeremy Stretch
e92c246e2c Add ITA plug/outlet types (#792) 2019-12-06 11:26:44 -05:00
Jeremy Stretch
ad9d33550f Closes #3731: Change Graph.type to a ContentType foreign key field 2019-12-06 10:32:59 -05:00
Sander Steffann
86261fec08 Don't redefine exception but split the code 2019-12-06 16:32:18 +01:00
Jeremy Stretch
84c345b043 Fixes #3725: Enforce client validation for minimum service port number 2019-12-05 21:22:34 -05:00
Jeremy Stretch
c530f970b1 Fixes #3722: Allow the underscore character in IPAddress DNS names 2019-12-05 21:14:29 -05:00
Jeremy Stretch
809e9d1f8b Adapt device component import forms from #3711 2019-12-05 17:49:44 -05:00
Jeremy Stretch
e4ffd4a5cc Merge branch 'develop-2.7' into 3569-api-choice-slugs 2019-12-05 17:43:11 -05:00
Jeremy Stretch
645aa2a295 Annotate all migration operation lists 2019-12-05 17:42:33 -05:00
Jeremy Stretch
d6557b63f6 Webhook.http_content_type to slug (#3569) 2019-12-05 17:11: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
Jeremy Stretch
ef3d772894 ExportTemplate.template_language to slug (#3569) 2019-12-05 17:01:00 -05:00
Jeremy Stretch
b2904050aa Delete obsolete user action types 2019-12-05 16:50:44 -05:00