Commit Graph

2123 Commits

Author SHA1 Message Date
Vas Sadvariy
33e45a5292 Closes #971: Implement VLANGroup VLANs view to show available VLANs within a group 2018-08-01 15:59:00 -04:00
Jeremy Stretch
475e0e6c1e Follow-up to #2272: subdevice_role should not be required 2018-08-01 14:22:32 -04:00
Jeremy Stretch
5e97f87a64 PEP8 fix 2018-08-01 14:05:26 -04:00
Jeremy Stretch
4ae7f2337a Closes #2213: Added squashed migrations 2018-08-01 14:01:20 -04:00
Jeremy Stretch
5e5b9683f9
Merge pull request #2290 from lampwins/bug/2137
Force webhooks to use the same JSONEncoder class as DRF - fixes #2137
2018-08-01 12:57:05 -04:00
John Anderson
2f33e9724d force webhooks to use the same JSONEncoder class as DRF - fixes #2137 2018-07-31 16:17:24 -04:00
Jeremy Stretch
5f7e21faa0 Fixes #1786: Correct loading of reports from a custom file path 2018-07-31 13:48:07 -04:00
Jeremy Stretch
d4ccaf60cf Fixes #2272: Allow subdevice_role to be null on DeviceTypeSerializer 2018-07-31 11:52:58 -04:00
Jeremy Stretch
45ab08aa76 Closes #2288: Fix exception when assigning objects to a ConfigContext via the API 2018-07-31 11:32:49 -04:00
Marc Hagen
c5339c255a Fixes #2286: Fix non working 'mark installed' button 2018-07-31 10:37:57 +02:00
Jeremy Stretch
249c3d0e81 Fixes #2284: Record object deletions before the request finishes 2018-07-30 16:33:37 -04:00
John Anderson
722d0d5554 Webhook signal refactor - fixes #2282 (#2260)
Refactor of webhook signaling system to use the same middleware mechanics of Changelogging
2018-07-30 14:23:49 -04:00
Jeremy Stretch
f7aa259995 Misc cleanup 2018-07-30 14:00:37 -04:00
Jeremy Stretch
f664998d9b Misc cleanup 2018-07-30 12:49:08 -04:00
Jeremy Stretch
c2416411c1 Renamed ChoiceFieldSerializer and ContentTypeFieldSerializer 2018-07-30 12:41:20 -04:00
Jeremy Stretch
524da5a2ff Closes #2225: Add "view elevations" button for site rack groups 2018-07-27 16:25:48 -04:00
Jeremy Stretch
838af2b2d8 Closes #2264: Added "map it" link for site GPS coordinates 2018-07-27 16:15:56 -04:00
Jeremy Stretch
64e86013bf Remove admin UI views for ConfigContexts and ObjectChanges 2018-07-27 16:00:50 -04:00
Jeremy Stretch
a1e8397b6b Closes #2229: Allow mapping of ConfigContexts to tenant groups 2018-07-27 15:47:29 -04:00
Jeremy Stretch
7476f522e1 Fixes #2265: Include parent regions when filtering applicable ConfigContexts (credit: lampwins) 2018-07-27 15:10:43 -04:00
Jeremy Stretch
40efa55ec7 Merged release v2.3.7 2018-07-27 11:43:27 -04:00
Jeremy Stretch
55f93184d3 Post-release version bump 2018-07-26 14:58:15 -04:00
Jeremy Stretch
0497539ef2 Release v2.3.7 2018-07-26 14:24:16 -04:00
Jeremy Stretch
e82bf66a76 ExceptionHandlingMiddleware: Use server_error view for custom templates 2018-07-23 23:12:41 -04:00
Jeremy Stretch
c8a73b5b15 Fixes #2266: Permit additional logging of exceptions beyond custom middleware 2018-07-23 23:00:09 -04:00
Jeremy Stretch
b518258e6d Closes #2250: Include stat counters on report result navigation 2018-07-23 16:10:46 -04:00
Jeremy Stretch
a1d45023ab Fixes #2256: Prevent navigation overlap when jumping to test results on report page 2018-07-23 15:50:44 -04:00
Jeremy Stretch
b7c2a26155 Closes #2259: Add changelog tab to interface view 2018-07-23 15:09:37 -04:00
Jeremy Stretch
86a67e7f32 Fixes #2258: Include changed object type on home page changelog 2018-07-23 15:02:07 -04:00
Jeremy Stretch
ba3ae0d80a Fixes #2257: Corrected casting of RIR utilization stats as floats 2018-07-23 14:52:51 -04:00
Jeremy Stretch
beac676a6e Cleaned up BulkEditView and BulkDeleteView 2018-07-20 21:18:10 -04:00
Jeremy Stretch
97b6038be2 Cleaned up custom fields panel template 2018-07-20 19:56:04 -04:00
Jeremy Stretch
0907a6ce5b Convert CustomFieldModel from object to abstract model 2018-07-20 19:44:04 -04:00
Jeremy Stretch
d04727f4b5 Fixes #2255: Corrected display of report results in report list 2018-07-20 09:39:55 -04:00
Jeremy Stretch
206c465e02 Merge branch 'develop' into develop-2.4 2018-07-18 17:51:57 -04:00
Jeremy Stretch
c2573774bf Fixes #2222: IP addresses created via the available-ips API endpoint should have the same mask as their parent prefix (not /32) 2018-07-18 15:27:45 -04:00
Jeremy Stretch
6e037e91d3 Fixes #2202: Ditched half-baked concept of tenancy inheritance via VRF 2018-07-18 15:10:12 -04:00
Jeremy Stretch
d665d4d62a Fixes #1992: Isolate errors when one of multiple NAPALM methods fails 2018-07-18 14:46:15 -04:00
Jeremy Stretch
29d9b32b67 Fixes #1977: Don't default master vc_position to 1 when creating a new virtual chassis 2018-07-18 14:17:35 -04:00
Jeremy Stretch
00d218118c Fixes #2231: Remove get_absolute_url() from DeviceRole 2018-07-18 11:24:36 -04:00
Jeremy Stretch
02b6ffd59a Added note about passphrase-protected keys (#2189) 2018-07-18 11:03:22 -04:00
Jeremy Stretch
aa0e4406eb
Merge pull request #2167 from lampwins/feature/2166
implements #2166 - asset tag partial string search
2018-07-18 10:40:12 -04:00
Jeremy Stretch
8937362433 Release v2.4-beta1 2018-07-17 11:22:25 -04:00
Jeremy Stretch
5cf38b5ce9 Enabled export templates for secrets 2018-07-17 10:34:50 -04:00
Jeremy Stretch
6cc9ceb198 Enabled bulk add/remove tags for interfaces 2018-07-17 10:25:16 -04:00
Jeremy Stretch
0c0799f3bf Closes #1739: Enabled custom fields for secrets 2018-07-17 09:43:57 -04:00
Jeremy Stretch
9e2ac7b3f4 Cleaned up imports 2018-07-16 17:09:21 -04:00
Jeremy Stretch
8bc8cf5e2d Include django-rq queues link in admin UI until we implement something cleaner 2018-07-16 16:33:06 -04:00
Jeremy Stretch
ea09023616 Webhook admin form cleanup 2018-07-16 13:54:50 -04:00
Jeremy Stretch
92de67a2ae Enabled webhooks for device components 2018-07-16 13:34:00 -04:00
Jeremy Stretch
57487f38de Link to related object if changed object has no URL 2018-07-16 13:29:57 -04:00
Jeremy Stretch
d334bd4477 Corrected exception handling in get_serializer_for_model() 2018-07-16 13:26:26 -04:00
Jeremy Stretch
d7e40de9da Merged v2.3.6 2018-07-16 12:03:32 -04:00
Jeremy Stretch
786f389be8 Post-release version bump 2018-07-16 11:56:12 -04:00
Jeremy Stretch
456b058462 Release v2.3.6 2018-07-16 11:52:12 -04:00
Jeremy Stretch
81b1d54859 Enabled export templates for services 2018-07-12 16:59:22 -04:00
Jeremy Stretch
67dbe02deb Enabled export templates for virtual chassis 2018-07-12 16:55:23 -04:00
Jeremy Stretch
85efdf8e00 Cleaned up objectchange table 2018-07-12 13:54:22 -04:00
Jeremy Stretch
bbaa3a2058 Enabled change logging for circuit terminations 2018-07-12 13:46:30 -04:00
Jeremy Stretch
931c58bc9a Enabled export templates for VRFs 2018-07-12 13:16:34 -04:00
Jeremy Stretch
abd5f17916 Enabled webhooks for all (and only) primary models 2018-07-12 13:09:13 -04:00
Jeremy Stretch
50f4c74688 Tweaked migration to include Service model 2018-07-12 13:08:23 -04:00
Jeremy Stretch
f7f7764a6e Miscellaneous cleanup for tags 2018-07-12 11:34:35 -04:00
Jeremy Stretch
f048cf36ce Implemented a view for interfaces 2018-07-11 15:30:54 -04:00
zmoody
b6e354085e Fixes #2125 - Show child status in device bay list
Exposes devicebay.installed_device.status in the parent device detail view.
2018-07-10 20:40:48 -05:00
Jeremy Stretch
484a74defd Misc cleanup for config contexts 2018-07-10 16:16:23 -04:00
Jeremy Stretch
43ed38a6e9 Enabled tags for device components and virtual chassis 2018-07-10 15:36:28 -04:00
Jeremy Stretch
0c4495eb39 Order tags by name only, not item count 2018-07-10 14:25:04 -04:00
Jeremy Stretch
864d49f54d Fixed regex casting to satisfy pycodestyle 2018-07-10 14:21:40 -04:00
Jeremy Stretch
bd2219276f Force custom field values to strings for object change serialization 2018-07-10 14:16:16 -04:00
Jeremy Stretch
df1f33992a Adapted change logging to queue changes in thread-local storage and record them at the end of the request 2018-07-10 13:33:54 -04:00
Jeremy Stretch
663bbd025e Updated custom fields inclusion tag to use 'with' 2018-07-10 11:02:37 -04:00
Jeremy Stretch
4802e516e5 Arranged object tags into a separate panel 2018-07-10 10:48:33 -04:00
Jeremy Stretch
f2512c4fdc Include link to parent object changelog when viewing a change 2018-07-10 10:15:56 -04:00
Jeremy Stretch
29172d045d Added missing import statement 2018-07-10 10:11:09 -04:00
Jeremy Stretch
289a762bf1 Record tags when serializing an object for an ObjectChange 2018-07-10 10:10:22 -04:00
Jeremy Stretch
208409110f Added bulk tag addition/removal 2018-07-10 10:00:21 -04:00
Jeremy Stretch
e27765d965 Added autocompletion for tags form widget 2018-07-05 16:51:38 -04:00
Jeremy Stretch
96d81d7074 Include return_url when editing interfaces in bulk 2018-07-05 15:36:25 -04:00
Jeremy Stretch
edf53d4516 Flip the order of tag and URL name for the tag template tag 2018-07-05 15:20:13 -04:00
Jeremy Stretch
108e9722fa Fixes #2214: Fix bug when assigning a VLAN to an interface on a VM in a cluster with no assigned site 2018-07-05 13:28:26 -04:00
Jeremy Stretch
72cb1cbfff Queryset fixes for virtual chassis 2018-07-05 13:20:27 -04:00
Jeremy Stretch
ed84c4b210
Merge pull request #2115 from DanSheps/develop
Added VirtualChassis Searching
2018-07-05 13:15:57 -04:00
Jeremy Stretch
9eb9715e05 Cleaned up IP addresses list under device/VM interfaces 2018-07-03 17:05:04 -04:00
Jeremy Stretch
49ecf5aa8a Wrote tests for config contexts 2018-07-03 15:47:54 -04:00
Jeremy Stretch
3ad8850ada Fixed required fields on ConfigContextSerializer 2018-07-03 15:47:32 -04:00
Jeremy Stretch
d1c9a18d04 Replaced home page user activity with changelog 2018-07-03 14:07:46 -04:00
Jeremy Stretch
89e196e86d Tweak ConfigContext manager to allow for objects with a regionless site 2018-07-03 13:40:47 -04:00
Jeremy Stretch
25b36d6d42 Remove separate config-context API endpoints; include rendered config context when retrieving a single device/VM 2018-07-03 12:29:20 -04:00
Jeremy Stretch
6ddbd79fe6 Fixed object return_url resolution for bulk editing 2018-07-03 09:49:36 -04:00
Jeremy Stretch
d70ef4d3b3 Cleaned up tags table 2018-07-03 09:47:44 -04:00
Jeremy Stretch
d0308e0f58 Merge branch 'develop' into develop-2.4 2018-07-02 17:01:14 -04:00
Jeremy Stretch
302c14186a Post-release version bump 2018-07-02 15:55:46 -04:00
Jeremy Stretch
398041c607 Release v2.3.5 2018-07-02 15:54:09 -04:00
Jeremy Stretch
c2c8a139f3
Merge branch 'develop' into develop 2018-07-02 15:45:36 -04:00
Jeremy Stretch
698c0decb4 Fixes #2021: Fix recursion error when viewing API docs under Python 3.4 2018-07-02 15:25:49 -04:00
Jeremy Stretch
ef61c70a9d Fixes 2064: Disable calls to online swagger validator 2018-07-02 14:39:32 -04:00
Jeremy Stretch
97863115ba
Merge pull request #2206 from abeutot/switch_to_pycodestyle
Switch to pycodestyle
2018-07-02 13:38:36 -04:00
Jeremy Stretch
cd56e51a61 Closes #1851: Standardize usage of GetReturnURLMixin 2018-07-02 11:54:41 -04:00
Jeremy Stretch
3e9cec3e8e Closes #2159: Allow custom choice field to specify a default choice 2018-06-29 16:01:28 -04:00
Erik Hetland
943ec0b64b Adding Swagger settings to describe API authentication correctly. Fixes #1826 2018-06-29 22:01:01 +02:00
Jeremy Stretch
8008015082 Tweaked API error reporting from #2181 2018-06-29 15:18:30 -04:00
Jeremy Stretch
af54d96d30 Fixes #2181: Raise validation error on invalid prefix_length when allocating next-available prefix 2018-06-29 15:10:30 -04:00
Jeremy Stretch
d98aa03e9d Fixes #2173: Fixed IndexError when automaticating allocating IP addresses from large IPv6 prefixes 2018-06-29 14:52:37 -04:00
Jeremy Stretch
8d4c686ae2 Fixes #2192: Prevent a 0U device from being assigned to a rack position 2018-06-29 14:09:20 -04:00
Jeremy Stretch
982b9454f8 Closes #2194: Added 'address' filter to IPAddress model 2018-06-29 13:54:21 -04:00
Jeremy Stretch
28a2a37ed2 Fixes #2191: Added missing static choices to circuits and DCIM API endpoints 2018-06-29 13:17:07 -04:00
Jeremy Stretch
acfbe9c1b1 Merge branch 'develop-2.4' of https://github.com/digitalocean/netbox into develop-2.4 2018-06-29 12:27:08 -04:00
Jeremy Stretch
4824c75563
Merge pull request #2204 from lampwins/bug/2203
Fix #2203 - webhook content type check
2018-06-29 12:26:54 -04:00
Jeremy Stretch
007852a48f
Revert "Closes #2168: Add Extreme SummitStack interface form factors" 2018-06-29 12:18:49 -04:00
Jeremy Stretch
3474697a66
Merge pull request #2169 from tradiuz/patch-1
Closes #2168: Add Extreme SummitStack interface form factors
2018-06-29 12:18:37 -04:00
Jeremy Stretch
bf1c7cacc6 Improved rendering of boolean fields in tables 2018-06-29 12:05:56 -04:00
Jeremy Stretch
b9bdd666da Closes #2200: Replaced detail_route API view decorator with action (DRF change) 2018-06-29 11:48:21 -04:00
Jeremy Stretch
35d58d2f7c Closes #2029: Added optional NAPALM arguments to Platform model 2018-06-29 11:21:00 -04:00
Jeremy Stretch
f5f16ce64b Include custom fields in ObjectChange data 2018-06-29 10:40:57 -04:00
Jeremy Stretch
7857480978 Added missing description field 2018-06-29 09:56:04 -04:00
Jeremy Stretch
278bacbce8 Fixed rendered config context ordering 2018-06-29 09:53:33 -04:00
Jeremy Stretch
743cf6d398 Added description to ConfigContext 2018-06-29 09:44:32 -04:00
Jeremy Stretch
ace7e3b108 Fixed is_active table column 2018-06-28 14:19:26 -04:00
Jeremy Stretch
1edc73179a Sort rendered config context 2018-06-28 14:10:20 -04:00
Jeremy Stretch
65dd7a5938 Applied JSON rederer to ConfigContext data 2018-06-28 14:05:57 -04:00
Jeremy Stretch
62989ecb6e Moved object context rendering to ObjectConfigContextView and standardized the template 2018-06-28 13:48:12 -04:00
Jeremy Stretch
b952ec73ce Introduced the render_json template filter 2018-06-28 10:49:52 -04:00
John Anderson
65e18e057f fixed #2203 2018-06-27 22:17:17 -04:00
Jeremy Stretch
c13e4858d7 Initial work on config contexts 2018-06-27 16:02:34 -04:00
Anaël Beutot
4e09b32dd9 Fix pycodestyle errors
Mainly two kind of errors:
* pokemon exceptions
* invalid escape sequences
2018-06-27 17:24:33 +02:00
Jeremy Stretch
06143b6c70 Fixes interface logging error 2018-06-25 13:29:23 -04:00
Jeremy Stretch
0af36eb99b Log interface connection changes 2018-06-25 13:12:03 -04:00
Jeremy Stretch
b11c3635b0 Corrected import of reverse() for Django 2.0 2018-06-22 16:34:38 -04:00
Jeremy Stretch
66c4911298 Fixed Region model declaration 2018-06-22 16:34:07 -04:00
Jeremy Stretch
36971b7651 Fixed changelog purging frequency 2018-06-22 16:23:07 -04:00
Jeremy Stretch
3bdfe9c249 Implemented changelog retention setting, automatic purging 2018-06-22 16:18:41 -04:00
Jeremy Stretch
4e6f73e452 Fixed invalid reference to content_type 2018-06-22 15:30:54 -04:00
Jeremy Stretch
ce27a1d211 serialize_object(): Allow extra data to overwrite existing fields 2018-06-22 15:27:22 -04:00
Jeremy Stretch
2d198403c7 Extend ObjectChange to optionally indicate a related object (e.g. a parent device) 2018-06-22 15:05:40 -04:00
Jeremy Stretch
6c1b5fdf3a Moved object serialization into a utility function 2018-06-22 14:00:23 -04:00
Jeremy Stretch
9d419de9dc Merge branch 'develop-2.4' into 1898-activity-logging 2018-06-21 16:53:15 -04:00
Jeremy Stretch
b945dec41b Closes #1687: Enabled custom fields for services 2018-06-21 16:17:18 -04:00
Jeremy Stretch
7819d9c112 Closes #1673: Added object/list views for services 2018-06-21 15:55:27 -04:00
Jeremy Stretch
258373f1a1 Closes #2118: Added latitude and longitude fields to Site 2018-06-21 14:55:10 -04:00
Jeremy Stretch
e1055b7f97 Moved ObjectChange creation logic from middleware to ChangeLoggedModel 2018-06-21 13:24:26 -04:00
Jeremy Stretch
a1f6ed1713 Disabled the creation of new UserActions 2018-06-21 10:56:33 -04:00
Jeremy Stretch
4ffce75b70 Fixed typo 2018-06-21 09:47:20 -04:00
Jeremy Stretch
09212691e2 Added changelog links for organizational models 2018-06-20 14:54:04 -04:00
Jeremy Stretch
ddd878683d Implemented changelog views 2018-06-20 13:52:54 -04:00
Jeremy Stretch
a8b11e45c1 Record a unique request ID with each ObjectChange 2018-06-19 15:45:15 -04:00
Jeremy Stretch
23f91274d6 Added API serializer for ObjectChange 2018-06-19 15:04:56 -04:00
Jeremy Stretch
6dde0f030a Fixes #2182: ValueError raised when viewing the interface connections table 2018-06-19 13:37:12 -04:00
Chris Howells
7c11fa7b50 Add a serial number to the popover in rack elevation number 2018-06-18 14:35:07 +01:00
tradiuz
264bf6c484
Adding SummitStack-256 2018-06-15 13:43:04 -05:00