Jeremy Stretch
5205c4963f
Refactor cable tracing logic
2020-04-15 15:46:41 -04:00
Jeremy Stretch
5aadfff1de
Merge pull request #4492 from kobayashi/4361-type-connection_status
...
Fix #4361 Set correct type of connection_status in swagger schema
2020-04-15 09:45:39 -04:00
Jeremy Stretch
e0f819691f
Fixes #4496 : Fix exception when validating certain models via REST API
2020-04-15 09:37:30 -04:00
kobayashi
1ce0191a74
Fixes #4361 : Set correct type of connection_state
2020-04-15 01:02:11 -04:00
Jeremy Stretch
788909de94
Fixes #4489 : Fix display of parent/child role on device type view
2020-04-14 12:13:05 -04:00
Jeremy Stretch
fc1feec8bf
Fix format string
2020-04-14 09:43:12 -04:00
Jeremy Stretch
d37a74846a
Remove format strings to ensure compilation under old Python releases
2020-04-13 14:07:44 -04:00
Jeremy Stretch
e97205922c
Fixes #4481 : Remove extraneous material from example configuration file
2020-04-13 13:49:34 -04:00
Jeremy Stretch
8b57a888e7
Post-release version bump
2020-04-13 11:31:16 -04:00
Jeremy Stretch
488129d7ad
Release v2.8.0
2020-04-13 11:21:33 -04:00
Jeremy Stretch
c691ec843d
Fixes #4476 : Correct typo in slugs for Infiniband interface types
2020-04-13 10:51:25 -04:00
Jeremy Stretch
67f2cdc921
Fixes #4474 : Fix population of device types when bulk editing devices
2020-04-13 10:34:44 -04:00
Jeremy Stretch
8939d4de92
Use packaging.version.parse directly
2020-04-10 11:18:01 -04:00
Jeremy Stretch
5de085d83d
Tweak PluginMenuButton icon_class to require additional "fa" class
2020-04-10 10:36:03 -04:00
Jeremy Stretch
19a10cee82
Rename base template
2020-04-10 10:21:02 -04:00
Jeremy Stretch
db70f04447
Minor tweaks to plugins development doc
2020-04-10 10:20:36 -04:00
Jeremy Stretch
b5aff1575d
Add plugins settings to example config
2020-04-09 15:45:38 -04:00
Jeremy Stretch
884d648cc2
Set X_FRAME_OPTIONS to SAMEORIGIN (changed in Django 3.0)
2020-04-09 15:31:18 -04:00
Jeremy Stretch
5266bf93a3
Merge branch 'develop' into develop-2.8
2020-04-08 13:50:15 -04:00
Jeremy Stretch
e04a5dc81f
Post-release version bump
2020-04-08 13:34:36 -04:00
Jeremy Stretch
b86c61dcdb
Release v2.7.12
2020-04-08 13:26:33 -04:00
toerb
f7e7699d93
add rack width of 21 inches for ETSI racks
2020-04-08 09:30:14 +02:00
Jeremy Stretch
ae58af4bb7
Added webhook_receiver management command
2020-04-07 13:37:48 -04:00
Jeremy Stretch
902b1b2c32
Fixes #4458 : Remove custom admin site to avoid conflict with django-rq 2.3.0
2020-04-07 10:17:34 -04:00
Daniel Sheppard
fe088dba7a
Fixes : #4396 - Fix typing on interface serializer
2020-04-07 08:33:00 -05:00
Jeremy Stretch
46b896b2cf
Merge branch 'develop' into develop-2.8
2020-04-06 13:51:05 -04:00
Jeremy Stretch
52ef488208
Fix nav menu w/plugins enabled
2020-04-06 13:27:41 -04:00
Jeremy Stretch
34c33549b8
Add tests for plugins caching config
2020-04-06 12:00:28 -04:00
Jeremy Stretch
76230cad53
Remove extraneous plugin config
2020-04-06 11:51:03 -04:00
Jeremy Stretch
9ffc404027
Add tests for plugin configuration, min/max version
2020-04-06 11:44:38 -04:00
Jeremy Stretch
1ffbeba181
#4439 : Fix null integer field display
2020-04-03 13:47:58 -04:00
Jeremy Stretch
630788731e
Closes #4448 : Allow connecting cables between two circuit terminations
2020-04-03 13:44:41 -04:00
Jeremy Stretch
721368ea8d
Closes #4147 : Use absolute URLs in rack elevation SVG renderings
2020-04-03 13:16:35 -04:00
Jeremy Stretch
1f3a21ba20
Fixes #4449 : Fix reservation edit/delete button URLs on rack view
2020-04-03 12:13:36 -04:00
Jeremy Stretch
6413d47fb2
Skip PluginTest if dummy_plugin not in PLUGINS list
2020-04-02 16:13:15 -04:00
Jeremy Stretch
9e0aa0d11e
Naming tweaks
2020-04-02 15:43:23 -04:00
Jeremy Stretch
ee4c5ef64a
Fix CI tests
2020-04-02 15:11:19 -04:00
Jeremy Stretch
4ab3854d66
Fixes #4438 : Fix exception when disconnecting a cable from a power feed
2020-04-02 10:19:50 -04:00
Jeremy Stretch
354f87c888
Fixes #4439 : Tweak display of unset custom integer fields
2020-04-02 10:06:01 -04:00
Jeremy Stretch
92fc28aa09
Remove errant references to external plugin
2020-04-01 17:18:15 -04:00
Jeremy Stretch
30e330c887
Initial implementation of tests for plugins framework
2020-04-01 17:08:47 -04:00
Jeremy Stretch
f316958943
Establish a separate configuration file for testing
2020-04-01 13:23:29 -04:00
Jeremy Stretch
0432b1a6f9
Move default caching_config to PluginConfig class
2020-04-01 12:10:19 -04:00
Jeremy Stretch
f469c794ce
Change PLUGINS_ENABLED to a list of specific plugins (PLUGINS)
2020-04-01 10:10:29 -04:00
Jeremy Stretch
fb2868f8bb
Fixes #4418 : Fail cleanly when trying to import multiple device types simultaneously
2020-03-30 16:44:04 -04:00
Jeremy Stretch
aa38dcf490
Closes #3676 : Reference VRF by name rather than RD during IP/prefix import
2020-03-30 15:54:35 -04:00
Jeremy Stretch
a914a7c438
Update serializer context assignment for DRF 3.11
2020-03-30 12:39:15 -04:00
Jeremy Stretch
9c16d5a747
Misc cleanup of PluginConfig processing logic
2020-03-27 13:57:11 -04:00
Jeremy Stretch
0d9d0b0446
Convert installed_plugins_admin_view to a class-based view
2020-03-27 13:35:25 -04:00
Jeremy Stretch
cb344a3792
Clean up plugin URL registration
2020-03-27 13:26:53 -04:00
Jeremy Stretch
dd9fc4173d
Expose regsitry in templates using existing context processor for settings
2020-03-27 13:18:51 -04:00
Jeremy Stretch
fd6739f0cc
Improved menu item/button validation
2020-03-27 13:12:58 -04:00
Jeremy Stretch
fa83750e72
Merge branch 'develop-2.8' into 3351-plugins
2020-03-27 13:05:34 -04:00
Jeremy Stretch
a72d5c899e
Merge branch 'develop' into develop-2.8
2020-03-27 12:53:55 -04:00
Jeremy Stretch
5cf872d000
Post-release version bump
2020-03-27 12:49:48 -04:00
Jeremy Stretch
59e6386361
Release v2.7.11
2020-03-27 12:40:21 -04:00
Jeremy Stretch
9c1eda0d9a
Closes #4404 : Add cable trace button for circuit terminations
2020-03-27 12:35:36 -04:00
Daniel Sheppard
785119f5bb
Fixes : #4415 - Add site on validate_unique() for device model
2020-03-27 08:37:48 -05:00
Jeremy Stretch
8a3ebf64bc
Rename obj to object; clean up docstrings
2020-03-26 21:46:56 -04:00
Jeremy Stretch
af302d8368
Avoid instantiating PluginTemplateExtension subclasses when the specified method has not been defined
2020-03-26 21:25:10 -04:00
Jeremy Stretch
f03cc96050
Restrict context data available to PluginTemplateExtensions
2020-03-26 16:50:55 -04:00
Jeremy Stretch
e7f7b14214
Extend menu items and buttons to accept a list of required permissions
2020-03-26 16:04:12 -04:00
Jeremy Stretch
84d2db0d35
Tweak variable naming
2020-03-26 13:37:52 -04:00
Jeremy Stretch
74e56a890c
Remove unused PluginSignal class
2020-03-26 12:26:58 -04:00
Jeremy Stretch
b94ef39a51
Standardize naming of menu items
2020-03-26 12:25:36 -04:00
Jeremy Stretch
877417d68f
Rename PluginTemplateContent to PluginTemplateExtension
2020-03-26 12:18:58 -04:00
Jeremy Stretch
d316d8ac61
Rename PluginNavMenuButton to PluginMenuButton
2020-03-26 11:30:42 -04:00
Jeremy Stretch
40574b65af
Rename PluginNavMenuLink to PluginMenuItem
2020-03-26 11:29:05 -04:00
Jeremy Stretch
81c9177c09
Add a default button color
2020-03-26 11:26:11 -04:00
Jeremy Stretch
5540079e81
Add documentation for PluginTemplateContent
2020-03-25 16:32:16 -04:00
Jeremy Stretch
68a0e76ca6
Rework template content registration to work like menu items
2020-03-25 16:06:00 -04:00
Jeremy Stretch
d0edd9d5c1
Update documentation for #4401
2020-03-25 14:33:32 -04:00
Jeremy Stretch
9ea30c057f
Replace get_menu_items() with static attribute
2020-03-25 13:51:37 -04:00
Jeremy Stretch
c1f2ad90ef
Simplify the mechanism for plugins to register navigation menu items
2020-03-25 11:32:50 -04:00
Jeremy Stretch
2a47bb8b54
Rename url_slug to base_url
2020-03-24 16:20:47 -04:00
Jeremy Stretch
16b8a45ed6
Get menu header via apps.get_config
2020-03-24 15:24:14 -04:00
Jeremy Stretch
ce0b1733fe
Derive API URLs app_name for plugins from url_slug
2020-03-23 14:03:04 -04:00
Jeremy Stretch
2732e7c3d9
Specify path to PluginConfig in INSTALLED_APPS
2020-03-23 12:01:24 -04:00
John Anderson
60b6c48775
remove duplicate import
2020-03-20 22:21:00 -04:00
John Anderson
4e84e8048f
added admin and api views for listing all plugins, and refactored urls import
2020-03-20 20:10:02 -04:00
Jeremy Stretch
ad1522f428
Update plugin URL loading logic
2020-03-20 15:51:14 -04:00
Jeremy Stretch
bc50c2aa55
Introduce PluginConfig
2020-03-20 15:50:47 -04:00
Jeremy Stretch
28b5e88c50
Rename entry point group; simplify import
2020-03-20 14:35:54 -04:00
Jeremy Stretch
058c78d8be
Closes #4389 : Add a bulk edit view for device bays
2020-03-19 16:32:08 -04:00
Jeremy Stretch
05fdf5e9a0
Closes #4386 : Update admin links for Django RQ to reflect multiple queues
2020-03-19 13:54:49 -04:00
Jeremy Stretch
2dff093305
Merge pull request #4258 from netbox-community/4255-dynamic_object_vars
...
Fixes : #4255 - Modify script ObjectVars to utilize DynamicModelChoiceField
2020-03-19 11:02:07 -04:00
Jeremy Stretch
8d3801896f
Rewrite and extend cabling logic tests
2020-03-19 10:43:51 -04:00
Jeremy Stretch
f1236e9bf7
Tweak tracing logic to ensure consistent behavior
2020-03-19 10:42:53 -04:00
dansheps
fa1548f3ce
Remove extraneous import
2020-03-19 08:11:14 -05:00
dansheps
0995e10d87
Modify script ObjectVars to use DynamicModelChoiceFields
2020-03-19 08:09:31 -05:00
Jeremy Stretch
e143158f12
Remove unused follow_circuits arg for cable tracing
2020-03-18 21:14:53 -04:00
Jeremy Stretch
40bfb55370
Improved cable tracing logic
2020-03-18 20:47:27 -04:00
John Anderson
dab313897e
Merge branch 'develop-2.8' into 3351-plugins
2020-03-18 18:30:47 -04:00
John Anderson
c7fb2ff894
add version contraints and cacheops config
2020-03-18 18:28:27 -04:00
Jeremy Stretch
ced6fe313a
Fix RackGroupForm field
2020-03-18 15:41:23 -04:00
Jeremy Stretch
7f5571200c
Closes #4382 : Enable custom links for rack reservations
2020-03-18 14:50:49 -04:00
John Anderson
fd879c7cf5
Merge branch 'develop-2.8' into 3351-plugins
2020-03-18 14:48:11 -04:00
Jeremy Stretch
a9d04547d1
Closes #4381 : Enable export templates for rack reservations
2020-03-18 14:46:23 -04:00
John Anderson
09e09e43ba
Merge branch 'develop' into develop-2.8
2020-03-18 14:44:18 -04:00
Jeremy Stretch
87f0b19dc0
Closes #4380 : Enable webhooks for rack reservations
2020-03-18 14:43:19 -04:00
Jeremy Stretch
dbbb2cdaba
Merge pull request #4366 from netbox-community/738-detect-new-releases
...
Closes #738 : Automatically detect new releases
2020-03-18 14:00:01 -04:00
Jeremy Stretch
7246fd667e
Move releases.py to netbox/
2020-03-18 13:54:41 -04:00
Jeremy Stretch
fe4f4bddc8
Tweaked logging; renamed release config parameters
2020-03-18 13:46:47 -04:00
Jeremy Stretch
70c29051b3
Raise specific exceptions
2020-03-18 13:15:22 -04:00
Jeremy Stretch
043b1c28d2
Refactor the registry into a dictionary object
2020-03-18 12:00:31 -04:00
Jeremy Stretch
022653f446
Fix Python 3.5 compatability for tests
2020-03-17 15:07:45 -04:00
Jeremy Stretch
1706db38df
Fix Python 3.5 compatability for tests
2020-03-17 15:00:39 -04:00
Jeremy Stretch
81287833ee
Update tests
2020-03-17 14:44:49 -04:00
Jeremy Stretch
2f12d09663
Clean up URL damping
2020-03-17 12:14:17 -04:00
Jeremy Stretch
3ace83c5aa
Cache only the most recent NetBox release
2020-03-17 11:58:17 -04:00
Jeremy Stretch
356de985d2
Tweak release template variables
2020-03-17 11:49:45 -04:00
Jeremy Stretch
ab93606e4a
Check for an existing job before queuing a new one
2020-03-17 11:37:35 -04:00
Jeremy Stretch
ec2dc8d7a4
Fix template logic
2020-03-17 11:28:35 -04:00
Jeremy Stretch
a2eb2e7da6
Introduce a new 'check_releases' RQ queue
2020-03-17 11:22:56 -04:00
Jeremy Stretch
3590ed378d
Rename 'webhooks' REDIS config to 'tasks'
2020-03-17 10:22:56 -04:00
John Anderson
2f37357a1b
added support for prepending elements to middleware
2020-03-17 02:35:34 -04:00
John Anderson
981c982237
added support for plugin nav bar links
2020-03-17 02:35:12 -04:00
John Anderson
457354c244
inject origional context as obj_context
2020-03-17 00:03:58 -04:00
Jeremy Stretch
00afe7aa94
Merge pull request #4375 from netbox-community/4374-dynamic-fields-api-url
...
Closes #4374 : Automatically derive API endpoint for dynamic choice fields
2020-03-16 16:02:25 -04:00
Jeremy Stretch
450615e0bb
Change IPAddressForm.nat_vrf to DynamicModelChoiceField
2020-03-16 14:29:01 -04:00
Jeremy Stretch
73881ad1e0
Change CircuitTerminationForm.site to a DynamicModelChoiceField
2020-03-16 14:24:17 -04:00
John Anderson
2522b88fc6
Merge branch 'develop-2.8' into 3351-plugins
2020-03-16 14:21:05 -04:00
Jeremy Stretch
0068108c57
Remove APISelect widget/api_url argument from dynamic fields
2020-03-16 14:08:48 -04:00
Jeremy Stretch
400f6fc5fb
Dynamically resolve the API URL for dynamic choice fields
2020-03-16 13:30:35 -04:00
John Anderson
901143b72a
Merge branch 'develop' into develop-2.8
2020-03-16 12:17:00 -04:00
John Anderson
9a38586e13
rename FeatureQuery class
2020-03-16 11:58:35 -04:00
kobayashi
7ef9a6c0a7
Fixes #2769 : improve prefix_length validations
2020-03-16 03:20:15 -04:00
John Anderson
8364694fb4
added plugin template content injection to primary model detail views
2020-03-15 23:45:18 -04:00
John Anderson
683c5a22db
Merge branch 'develop-2.8' into 3351-plugins
2020-03-15 00:55:25 -04:00
John Anderson
0574ac7530
fixed migration order
2020-03-15 00:48:05 -04:00
John Anderson
a955f90a7e
Merge branch 'develop-2.8' into 3351-plugins
2020-03-15 00:26:33 -04:00
John Anderson
2dc31c0edd
Revert "implemented registry for extras model functionality"
...
This reverts commit 235d99021b .
2020-03-15 00:25:46 -04:00
John Anderson
6ea15cec6f
Revert "refactor extras registry"
...
This reverts commit c189895f6c .
2020-03-15 00:24:05 -04:00
John Anderson
9df238c5f2
Merge branch 'develop' into develop-2.8
2020-03-15 00:18:32 -04:00
John Anderson
9466802a95
closes #4368 - extras features model registration
2020-03-14 03:03:22 -04:00
Jeremy Stretch
d4f6909859
Rename Tag.comments to description
2020-03-13 17:00:00 -04:00
Jeremy Stretch
9f5b138b0f
Add migrations for description fields
2020-03-13 16:35:36 -04:00
Jeremy Stretch
cebe580484
Add a description field to all organizational models
2020-03-13 16:33:28 -04:00
Jeremy Stretch
3b4ec5926d
Standardize existing description fields to a length of 200 chars
2020-03-13 15:49:58 -04:00
Jeremy Stretch
c5776d9da4
Closes #4369 : Add a dedicated view for rack reservations
2020-03-13 13:53:44 -04:00
Jeremy Stretch
9e45cafac4
Cleaned up new release notification banner
2020-03-13 12:20:00 -04:00
Jeremy Stretch
2033d15b2f
Tweak UPDATE_REPO_URL to convey the full URL
2020-03-13 12:14:27 -04:00
Jeremy Stretch
e2123f4a9e
Clean up logging
2020-03-13 11:55:06 -04:00
Jeremy Stretch
f6dfd2fa43
Simplify update repo URL validation
2020-03-13 10:20:09 -04:00
Jeremy Stretch
1f382f9252
Merge branch 'develop' into 738-detect-new-releases
2020-03-13 10:05:24 -04:00
Jeremy Stretch
459bcd88a9
Fixes #4365 : Fix exception raised on IP address bulk add view
2020-03-13 09:07:03 -04:00
Jeremy Stretch
1487b5004d
Closes #4309 : Add descriptive tooltip to custom fields on object views
2020-03-12 21:43:34 -04:00
Jeremy Stretch
a28509019a
Closes #4363 : Standardize secret creation URL
2020-03-12 21:14:14 -04:00
John Anderson
c189895f6c
refactor extras registry
2020-03-12 18:12:12 -04:00
Jeremy Stretch
5e971994ff
Closes #4362 : Standardize URL for creation of RackReservations
2020-03-12 17:43:11 -04:00
Jeremy Stretch
f108049142
Remove outdated TODOs
2020-03-12 11:57:26 -04:00
Jeremy Stretch
9fc1e88d9f
Update minimum Python version to 3.6
2020-03-12 11:46:11 -04:00
Jeremy Stretch
a53f854187
Remove tests for API _choices endpoints
2020-03-12 10:48:53 -04:00
Jeremy Stretch
ea9de37dd1
Remove FieldChoicesViewSet
2020-03-12 10:48:17 -04:00
John Anderson
235d99021b
implemented registry for extras model functionality
2020-03-12 04:07:54 -04:00
John Anderson
8af4cf87b5
Merge branch 'develop-2.8' into 3351-plugins
2020-03-12 01:19:15 -04:00
Jeremy Stretch
b5d57262f9
Update tests for nested TenantGroups
2020-03-11 21:14:53 -04:00
Jeremy Stretch
45f6ea211d
Implement support for nested TenantGroups
2020-03-11 21:12:55 -04:00
Jeremy Stretch
c42613cf4d
Update filter fields
2020-03-11 14:57:48 -04:00
Jeremy Stretch
84de0458aa
Implement nested RackGroups
2020-03-11 14:40:29 -04:00
Jeremy Stretch
7ffc00159e
Tweak settings/middleware to support testing; improve tests
2020-03-11 11:10:26 -04:00
Jeremy Stretch
79aba5edf2
Fixes #4343 : Fix Markdown support for tables
2020-03-11 09:52:02 -04:00
John Anderson
a504f5f309
closes #4340 - Enforce unique constraints for device and virtual machine names in the API
2020-03-10 19:15:24 -04:00
Jeremy Stretch
90144ccd9a
Add tests for remote authentication configuration
2020-03-10 16:57:34 -04:00
Jeremy Stretch
8c6d35645d
Remote auth cleanup
2020-03-10 16:56:57 -04:00
John Anderson
0706c65ce6
Merge branch 'develop-2.8' into 3351-plugins
2020-03-10 15:15:23 -04:00
Jeremy Stretch
0dc3a72912
Merge branch 'develop-2.8' into 2328-external-authentication
2020-03-10 15:07:19 -04:00
Jeremy Stretch
0de857bf7a
Merge branch 'develop' into develop-2.8
2020-03-10 15:06:37 -04:00
Jeremy Stretch
55558cb272
Post-release version bump
2020-03-10 14:03:22 -04:00
Jeremy Stretch
7bf1420463
Release v2.7.10
2020-03-10 13:50:17 -04:00
Jeremy Stretch
1eddac4066
Fixes #4338 : Catch AddrFormatError exception when filtering aggregates/prefixes by an invalid prefix
2020-03-10 11:58:34 -04:00
Jeremy Stretch
2571f22ae5
Revert initial fix for #4336
2020-03-10 11:43:00 -04:00
Jeremy Stretch
5346efe009
Fixes #4337 : Allow bulk editing/deletion of all device components matching a query
2020-03-10 10:18:48 -04:00
Jeremy Stretch
bb3f37ca35
Fixes #4336 : Ensure interfaces without a channel/unit are ordered before a channel/unit of zero
2020-03-10 10:03:42 -04:00
Jeremy Stretch
0e49a7a1fd
Closes #4332 : Redirect to a user-friendly error page when CSS/JS resources fail to load
2020-03-09 15:33:57 -04:00
Jeremy Stretch
0eaec6bd83
Merge pull request #4335 from netbox-community/4325-rack-reservation-import
...
Closes #4325 : Add suport for rack reservations CSV import
2020-03-09 13:45:38 -04:00
Jeremy Stretch
8cca22d79c
Add nav menu entry for rack reservations import
2020-03-09 13:39:12 -04:00
Jeremy Stretch
e364a25e46
Add test for RackReservation import
2020-03-09 13:35:44 -04:00
Jeremy Stretch
049da81bf2
Convert units to SimpleArrayField
2020-03-09 12:46:12 -04:00
Jeremy Stretch
947affd78f
Extend BulkImportView._save_obj to pass request context
2020-03-09 12:39:07 -04:00
Jeremy Stretch
15ab30d0c6
Replace model_name and model_name_verbose filters with meta
2020-03-09 10:50:46 -04:00
Jeremy Stretch
16d3cebf3e
Update markdown filter name
2020-03-09 10:42:32 -04:00
Jeremy Stretch
1069ad21d8
Remove unused contains filter
2020-03-09 10:38:29 -04:00
Jeremy Stretch
1423fd9024
Rename gfm filter to render_markdown
2020-03-09 10:31:29 -04:00
Jeremy Stretch
0439be2870
Remove unused getlist and getkey filters
2020-03-09 10:24:37 -04:00
Jeremy Stretch
22246353e2
Remove oneline filter
2020-03-09 10:22:30 -04:00
Jeremy Stretch
4edd0b1fd6
Merge branch 'develop' into 4217-contextual-docs
2020-03-09 09:56:14 -04:00
Jeremy Stretch
f9073a2f07
Fixes #4326 : Exclude Python modules without Script classes from scripts list
2020-03-06 20:59:32 -05:00
Jeremy Stretch
ad9dfec894
Started on #4325 (WIP)
2020-03-06 17:14:26 -05:00
Jeremy Stretch
9a829500cd
Fix typo
2020-03-06 16:40:00 -05:00
Jeremy Stretch
9fa5004a35
Closes #4324 : Add CSV import view for services
2020-03-06 16:33:43 -05:00
Jeremy Stretch
2a5bf2a222
Fixes #4323 : Add bulk edit view for power panels
2020-03-06 16:05:26 -05:00
Jeremy Stretch
803287a514
Closes #4313 : Remove id__in filters
2020-03-06 12:05:53 -05:00
Jeremy Stretch
1a89e35729
Merge branch 'develop' into develop-2.8
2020-03-06 11:34:01 -05:00
Jeremy Stretch
5950bedfae
Post-release version bump
2020-03-06 11:26:59 -05:00
Jeremy Stretch
09298dab7a
Release v2.7.9
2020-03-06 11:17:17 -05:00
Jeremy Stretch
afcd9b801f
Delete squashed migration to avoid 'pending trigger events' exception under certain conditions
2020-03-06 10:32:12 -05:00
Jeremy Stretch
c50714ec42
Introduce DOCS_ROOT configuration parameter
2020-03-06 09:35:58 -05:00
Tomas Slusny
4136a5fd5e
List choices for choice fields as enums
...
Fixes #4062
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2020-03-05 23:44:37 -05:00
Jeremy Stretch
363c4acadc
Drop GitHub-flavored Markdown (py-gfm)
2020-03-05 16:30:12 -05:00
Jeremy Stretch
3b200bbffc
Remove title from docs modal
2020-03-05 14:54:48 -05:00
Jeremy Stretch
121c7ada1f
Add admonition support for embedded docs
2020-03-05 14:49:52 -05:00
Jeremy Stretch
25f4cae3ff
Add model doc modal to object add/edit template
2020-03-05 13:56:03 -05:00
Jeremy Stretch
9f42bce16a
Update modal template
2020-03-05 13:55:27 -05:00
Jeremy Stretch
defe59d79e
Introduce get_docs() template filter for models
2020-03-05 13:52:34 -05:00
John Anderson
bc954bc7be
Merge branch 'develop-2.8' into 3351-plugins
2020-03-04 22:17:14 -05:00
Jeremy Stretch
2bd3f1fcc3
Merge pull request #4315 from netbox-community/4195-application-logging
...
Closes #4195 : Application logging
2020-03-04 14:39:12 -05:00
Jeremy Stretch
9df2769383
Enable system logging for reports
2020-03-04 14:22:30 -05:00
Jeremy Stretch
36cbbac870
Enable system logging for custom scripts
2020-03-04 14:05:59 -05:00
Jeremy Stretch
406b88777c
Add logging for DRF views
2020-03-04 13:32:45 -05:00
Jeremy Stretch
113313e000
Merge pull request #4001 from steffann/738-automatically-check-for-new-releases
...
Fixes : #738 : Automatically check for new versions
2020-03-04 12:22:57 -05:00
Jeremy Stretch
1dd07337fd
Merge pull request #4189 from netbox-community/4121-filter-lookup-expressions
...
4121 filter lookup expressions
2020-03-04 11:51:19 -05:00
Jeremy Stretch
57b6ac7cb1
Finish work on improved custom fields API tests
2020-03-04 09:53:49 -05:00
Jeremy Stretch
4611536ca9
Revise custom field API tests to check for single/multiple objects with/without custom field values
2020-03-03 17:07:43 -05:00
Jeremy Stretch
e4abfd192e
Introduce CustomFieldDefaultValues class to handle default custom field values
2020-03-03 14:54:48 -05:00
Jeremy Stretch
c85bcbcf31
Merge branch 'develop' into develop-2.8
2020-03-03 13:20:00 -05:00
Jeremy Stretch
e4fc37e91a
Merge pull request #4304 from dstarner/4288-incorrect-swagger-type
...
Set local_context_data serializer on Device and VM to method
2020-03-03 12:13:06 -05:00
Jeremy Stretch
74821c2c17
Closes #4218 : Allow negative voltage for DC power feeds
2020-03-03 12:10:08 -05:00
Dan Starner
e6ee9803d4
use FieldInspector for JSONField type
2020-03-03 12:04:46 -05:00
Jeremy Stretch
1e4dd102bd
Closes #4290 : Include device name in tooltip on rack elevations
2020-03-03 10:35:07 -05:00
Jeremy Stretch
0f9c37fbc7
Closes #4284 : Add MRJ21 port and cable types
2020-03-03 10:13:21 -05:00
Jeremy Stretch
a261060e5c
Closes #4305 : Add 10-inch option for rack width
2020-03-03 10:07:20 -05:00
Jeremy Stretch
78a1aad6c0
Fixes #4306 : Fix toggling of device images for all racks in elevations view
2020-03-03 10:04:35 -05:00
Jeremy Stretch
7b6bd75c22
#4295 follow-up: Tweak handling of initial data for bulk edit forms
2020-03-03 09:43:56 -05:00
Jeremy Stretch
c983dac771
Add logging output to login/logout views
2020-03-02 17:04:54 -05:00
Jeremy Stretch
7a10748355
Add logging output to API viewsets
2020-03-02 16:52:21 -05:00
Jeremy Stretch
ca1186dca1
Add logging output to utility views
2020-03-02 16:38:51 -05:00
Daniel Starner
3070c7e991
fix linting mistake
2020-03-02 15:45:58 -05:00
Dan Starner
406708218b
set local_context_data serializer on device and vm to method
2020-03-02 13:47:07 -05:00
Jeremy Stretch
c7b74b2090
Fixes #4300 : Pass "commit" argument when executing scripts via REST API
2020-03-02 13:29:32 -05:00
Jeremy Stretch
1e1c6526b2
Add BaseFilterSetTest to validate automatic generation of filters
2020-03-02 12:25:21 -05:00
kobayashi
0be5488104
Fix #4274 : Set correct value schema for int typed ChoiceField
2020-03-02 11:26:56 -05:00
Jeremy Stretch
13fcdc0c1e
Fixes #4301 : Fix exception when deleting device type with components
2020-03-02 09:41:37 -05:00
John Anderson
5f5edbc10e
added config option to disable plugins
2020-03-01 03:42:05 -05:00
John Anderson
71a8a13644
add api urls and signals interface for detail route buttons
2020-03-01 03:24:17 -05:00
John Anderson
a17c22746d
initial work on #3351
2020-02-29 02:23:01 -05:00
John Anderson
e5f8f15293
added lookup map for treenode filter
2020-02-28 19:58:06 -05:00
Jeremy Stretch
e285d0b547
Remove obsolete querydict_to_dict() utility function
2020-02-28 15:47:59 -05:00
Jeremy Stretch
5dc956fbe1
First stab at external authentication support
2020-02-28 15:16:31 -05:00
Jeremy Stretch
1449dfc966
Fixes #4295 : Fix assignment of parent LAG during interface bulk edit
2020-02-28 09:44:41 -05:00
Sander Steffann
fcf3b14712
Add unittests
2020-02-27 21:54:43 +01:00
Sander Steffann
28473fa3e0
Disable update check by default
2020-02-27 19:40:06 +01:00
Sander Steffann
8ce106cb4b
Move request to background task
2020-02-27 19:36:02 +01:00
Jeremy Stretch
bdf9857e6f
Closes #4294 : Add tenancy filter tests for all models
2020-02-27 13:28:08 -05:00
Sander Steffann
22ac9f63a1
Don't overwrite the header block, append to it
2020-02-27 18:27:36 +01:00
Sander Steffann
0de7f4712f
Fix check for permissions
2020-02-27 18:27:36 +01:00
Sander Steffann
8d92089487
Improve comments and error message on invalid characters in URL
2020-02-27 18:27:36 +01:00
Sander Steffann
3a0849699f
Rename settings to be more generic, not GitHub-only
2020-02-27 18:27:36 +01:00
Sander Steffann
008fc5623e
Full URL for API, more consistent naming, only enabled for staff and better configuration validation
2020-02-27 18:27:36 +01:00
Sander Steffann
9d66ac4a6a
Refactor the code to be more readable
2020-02-27 18:26:15 +01:00
Sander Steffann
405d93c6f2
Update versions.py
2020-02-27 18:26:15 +01:00
Sander Steffann
2fcdc90d3f
Automatically check for new versions
2020-02-27 18:26:15 +01:00
dansheps
27e3b6f377
Remove second variables, make widget mandatory on ObjectVar and MultiObjectVar
2020-02-27 07:45:11 -06:00
Jeremy Stretch
faf676e6e0
Closes #4281 : Allow filtering device component list views by type
2020-02-26 17:22:53 -05:00
Jeremy Stretch
624566b04e
Fixes #4282 : Fix label on export button for device types
2020-02-26 16:49:39 -05:00
Jeremy Stretch
5a00939512
Fixes #4285 : Include A/Z termination sites in provider circuits table
2020-02-26 16:41:59 -05:00
John Anderson
c908f132ec
Merge branch 'develop' into 4121-filter-lookup-expressions
2020-02-26 12:05:27 -05:00
Jeremy Stretch
5a61bbec26
Fixes #4277 : Fix filtering of clusters by tenant
2020-02-26 09:11:38 -05:00
John Anderson
3b4607d30d
refactor lookup map logic
2020-02-25 15:16:27 -05:00
Jeremy Stretch
5befe66aa5
Post-release version bump
2020-02-25 15:11:04 -05:00
Jeremy Stretch
7e81d5fe11
Release v2.7.8
2020-02-25 15:04:08 -05:00
Jeremy Stretch
6b4858303b
Fix object list table width when no filter_form is present
2020-02-25 15:03:27 -05:00
Jeremy Stretch
5000f7f8d7
Extend custom scripts to pass the 'commit' value via run()
2020-02-25 14:49:41 -05:00
Jeremy Stretch
f643af13d7
Fix field label for Prefix.vrf
2020-02-25 14:12:53 -05:00
John Anderson
afc8c9bfe9
fix tenancy filterset bases
2020-02-25 13:50:31 -05:00
Jeremy Stretch
a6e859d9b7
Remove extraneous prefetches from racks queryset
2020-02-25 12:35:27 -05:00
Jeremy Stretch
5bf68493df
Changelog & cleanup for #4267
2020-02-25 12:34:48 -05:00
Jeremy Stretch
43f3488270
Merge pull request #4271 from ananace/4267-rack-roles-in-elevations
...
Fixes #4267 : Display rack roles in elevation list view
2020-02-25 12:18:31 -05:00
Jeremy Stretch
62efe0621f
Fixes #4272 : Interface type should be required by API serializer
2020-02-25 11:20:43 -05:00
Jeremy Stretch
40b56d7f62
Merge branch 'develop' into 4227-omit-private-changelog
2020-02-25 11:02:11 -05:00
Jeremy Stretch
c3b64164ba
Always use a JSON object to convey change data when no body template is present
2020-02-25 10:43:14 -05:00
Alexander Olofsson
838291c3f3
Display rack roles in elevation list view
2020-02-25 16:00:21 +01:00
Saria Hajjar
3296298d21
Fixes #4227 : Omit internal fields from the change log data
2020-02-25 14:48:11 +00:00
Jeremy Stretch
211311be9f
Add http_method field to Webhook
2020-02-24 20:42:24 -05:00
Jeremy Stretch
9a532b1eb2
Extend templatization ability to additional_headers field
2020-02-24 17:47:17 -05:00
Jeremy Stretch
1fbd3a2c26
Convert additional_headers to a TextField
2020-02-24 16:59:35 -05:00
Jeremy Stretch
99038ffc44
Enable custom templating for webhook request content
2020-02-24 16:12:46 -05:00
John Anderson
67565ca191
added docs and more tests
2020-02-24 15:03:07 -05:00
Jeremy Stretch
4d1749cc71
Remove CONNECTION_STATUS_CONNECTED and CONNECTION_STATUS_PLANNED constants
2020-02-24 14:18:19 -05:00
Jeremy Stretch
f7b620c6a2
Closes #3145 : Add 'decommissioning' status for cables
2020-02-24 14:09:36 -05:00
Jeremy Stretch
76138f3080
Fixes #4222 : Escape double quotes on encapsulated values during CSV export
2020-02-24 13:29:00 -05:00
Jeremy Stretch
36f8d6d259
Disconnect post_save & pre_delete signals after the response has been received
2020-02-24 12:42:51 -05:00
Jeremy Stretch
909971f237
Fixes #4221 : Fix exception when deleting a device with interface connections when an interfaces webhook is defined
2020-02-24 12:41:55 -05:00
dansheps
8ed0d0400f
Add tests
2020-02-24 10:30:57 -06:00
Jeremy Stretch
cfd813772d
Merge pull request #4257 from netbox-community/4250-extend-view-tests
...
Extend ViewTestCases for create/edit/delete/import views
2020-02-24 11:30:01 -05:00
Jeremy Stretch
2b484955aa
Extend ViewTestCases for create/edit/delete/import views to also check non-data-bound GET requests
2020-02-24 11:23:42 -05:00
dansheps
a5853427d4
Update __all__ for #4255
2020-02-24 10:21:17 -06:00
dansheps
d0bd1ad25b
Fixes : #4255 - Add new script variable types based on dynamic model fields
2020-02-24 10:18:19 -06:00
Daniel Sheppard
d0c82c23bd
Merge pull request #4244 from netbox-community/4230-filter_rack_unit_on_elevations
...
Fixes : #4230 - Fixes rack units filtering on elevation endpoint
2020-02-24 09:25:42 -06:00
Jeremy Stretch
61c0a4cc61
Fixes #4252 : Fix power port assignment for power outlet templates created via REST API
2020-02-24 10:13:47 -05:00
Jeremy Stretch
b97d3b0716
Fixes #4246 : Fix duplication of field attributes when multiple IPNetworkVars are present in a script
2020-02-24 10:01:31 -05:00
Jeremy Stretch
25d126d4ff
Call prepare_value() to avoid passing model instances directly to the filterset
2020-02-24 09:31:31 -05:00
Dan Sheppard
2b75e05ea7
Fixes : #4230 - Fixes filtering by position on elevation endpoint
...
* Add tests for rack elevation filtering
* Add q variable to serializers for RackElevationDetailFilterSerializer
* Add code to allow filtering of position on the rack elevation
2020-02-22 08:24:26 -06:00
Jeremy Stretch
1a997610c7
Fixes #4241 : Correct IP address hyperlinks on interface view
2020-02-21 21:43:04 -05:00
Jeremy Stretch
04ee55a40c
Fixes #4240 : Fix exception when filtering foreign keys by NULL
2020-02-21 21:38:25 -05:00
Jeremy Stretch
1c72d75b62
Fixes #4239 : Fix exception when selecting all filtered objects during bulk edit
2020-02-21 20:44:53 -05:00
Jeremy Stretch
9128dc961c
Closes #4173 : Return graceful error message when webhook queuing fails
2020-02-21 17:21:04 -05:00
Jeremy Stretch
28e3b7af18
Merge branch 'develop' into develop-2.8
2020-02-21 15:26:55 -05:00
Jeremy Stretch
12602a95ea
All fields on RenderedGraphSerializer should be read-only
2020-02-21 14:45:07 -05:00
Jeremy Stretch
11d012de4e
Fixes #4235 : Fix API representation of content_type for export templates
2020-02-21 14:38:38 -05:00