Commit Graph

601 Commits

Author SHA1 Message Date
Jeremy Stretch
51e2c4165e Update migrations 2019-04-09 14:22:45 -04:00
Jeremy Stretch
9a690ef644 Merge branch 'develop-2.6' into 54-power-modeling 2019-04-09 14:12:45 -04:00
Jeremy Stretch
856651c4e8 Merge branch 'develop' into develop-2.6 2019-04-09 14:11:26 -04:00
Jeremy Stretch
197b0c5608 Closes #3052: Add Jinja2 support for export templates 2019-04-08 12:20:24 -04:00
Jeremy Stretch
40d6d811e5 Fixes #3039: Fix exception when retrieving change object for a component template via API 2019-04-04 15:00:59 -04:00
Jeremy Stretch
f065ecdf26 Merge branch 'develop-2.6' into 54-power-modeling 2019-04-02 13:15:40 -04:00
Jeremy Stretch
2b3be845cd Merge branch 'develop' into develop-2.6 2019-04-02 13:12:34 -04:00
Jeremy Stretch
bf94129f90 Fixes #3027: Ignore empty local context data when rendering config contexts 2019-03-28 10:16:28 -04:00
Jeremy Stretch
7a6c0d1d96 Fixes #3001: Fix API representation of ObjectChange action and add changed_object_type 2019-03-28 09:57:26 -04:00
John Anderson
b1351be750 implements #3025 - Add request ID to outbound webhook requests 2019-03-24 15:35:42 -04:00
John Anderson
a54d906be2 implements #2933 - username in webhooks 2019-03-24 15:31:12 -04:00
Jeremy Stretch
6c94b53fca FieldChoicesViewSet should infer field choices from serializer, not model 2019-03-22 16:24:53 -04:00
Jeremy Stretch
ef5811f30b Further work on power feed modeling 2019-03-21 17:47:43 -04:00
Alexander Kinneer
2db6af0a1e Add support for configuring use of an SSL connection to Redis.
Requires a build or release of django-rq containing
44f3fdd7cb
2019-03-18 11:26:37 -05:00
Jeremy Stretch
3f6c583074 Merge branch 'develop' into develop-2.6 2019-03-11 21:01:18 -04:00
Jeremy Stretch
80d8035f0e Fixes #2968: Correct API documentation for SerializerMethodFields 2019-03-08 10:25:09 -05:00
Jeremy Stretch
593105dd8f Merge pull request #2969 from DanSheps/2435-PrintingCSS
Closes #2435: Printer friendly CSS
2019-03-06 09:44:04 -05:00
dansheps
a7f5db45e4 * Added CSS to:
* Hide URLs
  * Hide elements with "noprint" class
* Added noprint to:
  * Header Panel
  * Search Panel, Tags Panel
  * Buttons
  * Various list elements
  * Related elements
2019-03-05 15:42:47 -06:00
Jeremy Stretch
2fa7a21250 Updated migrations to account for extras/0017_exporttemplate_mime_type_length 2019-03-05 13:46:37 -05:00
Jeremy Stretch
4bb54bb403 Merge branch 'develop' into develop-2.6 2019-03-05 13:39:00 -05:00
Jeremy Stretch
b3c753bb8a Fixes #2962: Increase ExportTemplate mime_type field length 2019-03-05 13:08:40 -05:00
Grokzen
0ce752c816 Closes #1792 - Add CustomFieldChoices API endpoint (#2941)
* Add new api endpoint for CustomFieldChoices

* Add changelog item for #1792

* Add tests for CustomFieldchoiceAPI endpoint
2019-03-04 15:58:40 -05:00
John Anderson
61927f5eb4 Merge branch 'develop-2.6' of github.com:digitalocean/netbox into develop-2.6 2019-03-03 19:06:05 -05:00
Jeremy Stretch
6d428b39d7 Force resolution of request User object when logging an object deletion (resolves intermittent test failures) 2019-02-28 11:40:32 -05:00
John Anderson
c06723f133 added changelog views for Tag 2019-02-22 02:29:00 -05:00
John Anderson
20bd8411d6 fix circular import for ObjectChange, for now... 2019-02-22 01:42:17 -05:00
John Anderson
b318811de8 refactor tag migrations and add changelog fields to tag 2019-02-22 01:32:31 -05:00
John Anderson
ed8adcf339 removed migration to delete taggit models 2019-02-21 00:15:15 -05:00
John Anderson
3e4a82f5ad added default values for comments and color fields on tag 2019-02-20 03:56:32 -05:00
John Anderson
c679dd4ff8 initial pass on migrating to custom tag model with color and comments fields 2019-02-20 03:52:47 -05:00
John Anderson
ce0c323de3 fixed #2910 - config context list and edit views not using select2 2019-02-18 21:10:15 -05:00
Jeremy Stretch
f66ecd3eb4 Implement basic view testing for all models (#2909) 2019-02-15 17:02:18 -05:00
Brian Candler
c513fa79b3 Show exception description on failure to render graphviz
This means that problems give a more specific reason.  In the event
that dot is not found, the error is now:

There was an error generating the requested graph: failed to execute ['dot',
'-Tpng'], make sure the Graphviz executables are on your systems' PATH
2019-01-01 11:41:54 +00:00
Jeremy Stretch
07557e9699 Fixes #2723: Correct permission evaluation when bulk deleting tags 2018-12-21 09:11:07 -05:00
Jeremy Stretch
0812c52495 Fixes #2717: Fix bulk deletion of tags 2018-12-21 09:08:00 -05:00
Jeremy Stretch
1246641fee Fixes #2687: Correct naming of before/after filters for changelog entries 2018-12-13 14:43:05 -05:00
Jeremy Stretch
0ce2930b81 Closes #2674: Enable filtering changelog by object type under web UI 2018-12-13 14:37:03 -05:00
Jeremy Stretch
1ed1f05daf Fixes #2684: Fix custom field filtering 2018-12-12 16:06:50 -05:00
Jeremy Stretch
a82d476f34 Fixes #2678: Fix error when viewing webhook in admin UI without write permission 2018-12-12 09:30:31 -05:00
Jeremy Stretch
13edc47a4d Merge v2.5 work 2018-12-07 10:51:28 -05:00
Jeremy Stretch
8cc582b360 Closes #2495: Enable deep-merging of config context data 2018-12-05 14:34:49 -05:00
John Anderson
12df37b155 fixes #2623 - model class being passed to rqworker 2018-12-04 00:40:54 -05:00
Jeremy Stretch
f1a2a724b4 Formatting cleanup 2018-11-27 11:57:29 -05:00
Jeremy Stretch
6b1abd6a65 Closes #2614: Simplify calls of super() for Python 3 2018-11-27 10:52:24 -05:00
Tyler Bigler
c98de8e348 Refactor Extras Migration Version Check (#2604)
* Add constant for DB_MINIMUM_VERSION

* Refactor verify_postgresql_version to use Django connection pg_version method for comparing versions.

* Remove StrictVersion import

* Remove DB_MINIMUM_VERSION as not necessary in constants.

* Define DB_MINIMUM_VERSION locally to freeze to migration.

* Refactor database version verification to use django builtin methods.
2018-11-26 14:16:37 -05:00
Jeremy Stretch
b5ef607224 Merge v2.4.8 2018-11-20 12:28:24 -05:00
Jeremy Stretch
83cac4c90c Closes #2557: Added object view for tags 2018-11-15 16:47:41 -05:00
Jeremy Stretch
fb37af673b Closes #2490: Added bulk editing for config contexts 2018-11-13 15:08:55 -05:00
Jeremy Stretch
9a4f3453fb Closes #2578: Reorganized nested serializers 2018-11-12 11:36:44 -05:00
Jeremy Stretch
fb086de11a Fixes #2574: Remove duplicate interface links from topology maps 2018-11-09 09:54:30 -05:00
Jeremy Stretch
c0d9e86a34 Fixes #2563: Enable export templates for cables 2018-11-07 15:49:45 -05:00
Jeremy Stretch
f6d4ea00df Cleaned up import statements 2018-11-02 15:20:08 -04:00
Jeremy Stretch
5bc3f4b868 Fixed deprecation warnings from DRF 3.9 2018-11-02 13:48:44 -04:00
Jeremy Stretch
9cad97b073 Upgraded django-filter to 2.0.0 2018-11-02 13:46:28 -04:00
Jeremy Stretch
0623f45109 Cable migration for ExportTemplate 2018-11-01 14:54:53 -04:00
Jeremy Stretch
7e828b7f2a Extended Cables to connect CircuitTerminations 2018-10-30 12:16:22 -04:00
Jeremy Stretch
f3174c14f7 Deprecated the InterfaceConnection model 2018-10-24 13:59:44 -04:00
Jeremy Stretch
0370a91558 Renamed PowerPort.power_outlet to connected_endpoint 2018-10-24 11:00:13 -04:00
Jeremy Stretch
d4e159dec6 Renamed ConsolePort.cs_port to connected_endpoint 2018-10-24 10:37:54 -04:00
Jeremy Stretch
66db32fefd Merged release v2.4.5 2018-10-03 11:23:21 -04:00
John Anderson
912c0a7243 Merge branch 'develop' of github.com:digitalocean/netbox into local-config-context 2018-09-18 12:16:07 -04:00
John Anderson
0bda0a9334 refactored UI for local config context 2018-09-18 11:52:12 -04:00
Jeremy Stretch
af3d452675 Fixes #2443: Enforce JSON object format when creating config contexts 2018-09-18 11:46:22 -04:00
John Anderson
39b2a541af PEP8 fix 2018-09-16 00:30:51 -04:00
John Anderson
7997b70ba1 implemnted #2392 - local config context for devices and VMs 2018-09-16 00:25:20 -04:00
Jeremy Stretch
5c1385f16b Merge branch 'develop' into develop-2.5 2018-08-16 16:31:54 -04:00
Jeremy Stretch
34dda068c7 Closes #2367: Remove deprecated RPCClient functionality 2018-08-16 12:21:24 -04:00
Jeremy Stretch
36cac325bb Fixes #2362: Implemented custom admin site to properly handle BASE_PATH 2018-08-16 09:44:00 -04:00
Jeremy Stretch
6d11bbccb0 Closes #2292: Remove the deprecated UserAction model 2018-08-14 12:13:43 -04:00
Jeremy Stretch
68a5dcd47e Removed Python 2 string compatibility 2018-08-14 11:58:42 -04:00
Jeremy Stretch
1724491366 Closes #2000: Remove support for Python 2 2018-08-14 11:48:12 -04:00
Jeremy Stretch
5a5b739517 Closes #2333: Added search filters for ConfigContexts 2018-08-09 12:22:34 -04:00
Jeremy Stretch
e107077192 Fixes #2322: Webhooks firing on non-enabled event types 2018-08-07 15:41:31 -04:00
Jeremy Stretch
bfdfe66bcf Fixes #2320: TypeError when dispatching a webhook with a secret key configured 2018-08-07 14:19:46 -04:00
Jeremy Stretch
40f7667e51 Fixes #2318: ImportError when viewing a report 2018-08-07 12:10:14 -04:00
Jeremy Stretch
318e5aac45 Fixes #2312: Running a report yields a ValueError exception 2018-08-07 09:12:05 -04:00
Jeremy Stretch
f7820ee0be Merge branch 'develop-2.4' into develop 2018-08-06 12:28:23 -04:00
Jeremy Stretch
d46cbcff5f Refactored the tests to remove a lot of boilerplate 2018-08-03 11:39:26 -04:00
Jeremy Stretch
09f6b76cc9 Fixes #2301: Fix model validation on assignment of ManyToMany fields via API patch 2018-08-03 10:45:53 -04:00
Jeremy Stretch
79fb2c5e08 Added tests for assigning tags during POST/PATCH 2018-08-02 14:23:30 -04:00
Jeremy Stretch
c029d7382e Mark UserAction as deprecated 2018-08-02 09:38:09 -04:00
Jeremy Stretch
f05261631c Closes #2213: Added squashed migrations 2018-08-01 14:01:20 -04:00
Jeremy Stretch
488acd99b6 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
8a55a6702a force webhooks to use the same JSONEncoder class as DRF - fixes #2137 2018-07-31 16:17:24 -04:00
Jeremy Stretch
e47ea595cc Fixes #1786: Correct loading of reports from a custom file path 2018-07-31 13:48:07 -04:00
Jeremy Stretch
fb99c5e0d0 Closes #2288: Fix exception when assigning objects to a ConfigContext via the API 2018-07-31 11:32:49 -04:00
Jeremy Stretch
fcdace0d70 Fixes #2284: Record object deletions before the request finishes 2018-07-30 16:33:37 -04:00
John Anderson
8c51fc86f4 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
7809eb42d9 Renamed ChoiceFieldSerializer and ContentTypeFieldSerializer 2018-07-30 12:41:20 -04:00
Jeremy Stretch
3ce34fdff9 Remove admin UI views for ConfigContexts and ObjectChanges 2018-07-27 16:00:50 -04:00
Jeremy Stretch
3cef939e0c Closes #2229: Allow mapping of ConfigContexts to tenant groups 2018-07-27 15:47:29 -04:00
Jeremy Stretch
971a3f8d4d Fixes #2265: Include parent regions when filtering applicable ConfigContexts (credit: lampwins) 2018-07-27 15:10:43 -04:00
Jeremy Stretch
0d1bb22c6c Cleaned up BulkEditView and BulkDeleteView 2018-07-20 21:18:10 -04:00
Jeremy Stretch
bd2eed5285 Convert CustomFieldModel from object to abstract model 2018-07-20 19:44:04 -04:00
Jeremy Stretch
14d07634ad Enabled export templates for secrets 2018-07-17 10:34:50 -04:00
Jeremy Stretch
278f7228eb Closes #1739: Enabled custom fields for secrets 2018-07-17 09:43:57 -04:00
Jeremy Stretch
34a9573a0b Cleaned up imports 2018-07-16 17:09:21 -04:00
Jeremy Stretch
c6e54c6ee8 Webhook admin form cleanup 2018-07-16 13:54:50 -04:00
Jeremy Stretch
52e7f66b2c Enabled webhooks for device components 2018-07-16 13:34:00 -04:00
Jeremy Stretch
6a92419490 Link to related object if changed object has no URL 2018-07-16 13:29:57 -04:00
Jeremy Stretch
66e066a8a7 Enabled export templates for services 2018-07-12 16:59:22 -04:00
Jeremy Stretch
e6308fcfb3 Enabled export templates for virtual chassis 2018-07-12 16:55:23 -04:00
Jeremy Stretch
707465d222 Cleaned up objectchange table 2018-07-12 13:54:22 -04:00
Jeremy Stretch
301f27cdd8 Enabled export templates for VRFs 2018-07-12 13:16:34 -04:00
Jeremy Stretch
5ff0c6014d Enabled webhooks for all (and only) primary models 2018-07-12 13:09:13 -04:00
Jeremy Stretch
ff6e84ae0e Misc cleanup for config contexts 2018-07-10 16:16:23 -04:00
Jeremy Stretch
c9cc41cc5b 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
6da5abbede Added bulk tag addition/removal 2018-07-10 10:00:21 -04:00
Jeremy Stretch
ca6a58b966 Wrote tests for config contexts 2018-07-03 15:47:54 -04:00
Jeremy Stretch
a96bc8b6d2 Fixed required fields on ConfigContextSerializer 2018-07-03 15:47:32 -04:00
Jeremy Stretch
adaf4614ed Tweak ConfigContext manager to allow for objects with a regionless site 2018-07-03 13:40:47 -04:00
Jeremy Stretch
eb7fc628cb Cleaned up tags table 2018-07-03 09:47:44 -04:00
Jeremy Stretch
4d92ffd153 Merge branch 'develop' into develop-2.4 2018-07-02 17:01:14 -04:00
Jeremy Stretch
9b8b7abfaf Merge pull request #2206 from abeutot/switch_to_pycodestyle
Switch to pycodestyle
2018-07-02 13:38:36 -04:00
Jeremy Stretch
02e7cf1994 Closes #2159: Allow custom choice field to specify a default choice 2018-06-29 16:01:28 -04:00
Jeremy Stretch
8d62a05f82 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
0f16a6289d Merge pull request #2204 from lampwins/bug/2203
Fix #2203 - webhook content type check
2018-06-29 12:26:54 -04:00
Jeremy Stretch
78226ddb12 Improved rendering of boolean fields in tables 2018-06-29 12:05:56 -04:00
Jeremy Stretch
999aebc167 Closes #2200: Replaced detail_route API view decorator with action (DRF change) 2018-06-29 11:48:21 -04:00
Jeremy Stretch
e0bde1b4eb Fixed rendered config context ordering 2018-06-29 09:53:33 -04:00
Jeremy Stretch
ba282a63e2 Added description to ConfigContext 2018-06-29 09:44:32 -04:00
Jeremy Stretch
7a7260bab3 Fixed is_active table column 2018-06-28 14:19:26 -04:00
Jeremy Stretch
ddae62905d Sort rendered config context 2018-06-28 14:10:20 -04:00
Jeremy Stretch
1f8e4698f9 Moved object context rendering to ObjectConfigContextView and standardized the template 2018-06-28 13:48:12 -04:00
Jeremy Stretch
aa8ffad29c Introduced the render_json template filter 2018-06-28 10:49:52 -04:00
John Anderson
71a2b629b4 fixed #2203 2018-06-27 22:17:17 -04:00
Jeremy Stretch
2b56131412 Initial work on config contexts 2018-06-27 16:02:34 -04:00
Anaël Beutot
992dacbb72 Fix pycodestyle errors
Mainly two kind of errors:
* pokemon exceptions
* invalid escape sequences
2018-06-27 17:24:33 +02:00
Jeremy Stretch
5ba433b058 Corrected import of reverse() for Django 2.0 2018-06-22 16:34:38 -04:00
Jeremy Stretch
2b1933876d Fixed changelog purging frequency 2018-06-22 16:23:07 -04:00
Jeremy Stretch
1d1af4cf1a Implemented changelog retention setting, automatic purging 2018-06-22 16:18:41 -04:00
Jeremy Stretch
786f163d09 Fixed invalid reference to content_type 2018-06-22 15:30:54 -04:00
Jeremy Stretch
895bae649f Extend ObjectChange to optionally indicate a related object (e.g. a parent device) 2018-06-22 15:05:40 -04:00
Jeremy Stretch
e3f625cb7b Moved object serialization into a utility function 2018-06-22 14:00:23 -04:00
Jeremy Stretch
837ae2b7b8 Merge branch 'develop-2.4' into 1898-activity-logging 2018-06-21 16:53:15 -04:00
Jeremy Stretch
337897e6e2 Closes #1687: Enabled custom fields for services 2018-06-21 16:17:18 -04:00
Jeremy Stretch
ec8143fc1b Moved ObjectChange creation logic from middleware to ChangeLoggedModel 2018-06-21 13:24:26 -04:00
Jeremy Stretch
4a46474005 Disabled the creation of new UserActions 2018-06-21 10:56:33 -04:00
Jeremy Stretch
d04b1dc304 Implemented changelog views 2018-06-20 13:52:54 -04:00
Jeremy Stretch
dbafc047da Record a unique request ID with each ObjectChange 2018-06-19 15:45:15 -04:00
Jeremy Stretch
9fb4428d14 Added API serializer for ObjectChange 2018-06-19 15:04:56 -04:00
Jeremy Stretch
24326573d6 Prevent duplicate signals from change logging middleware 2018-06-14 16:18:42 -04:00
Jeremy Stretch
c4c4dd7cad Added changelog views 2018-06-14 16:15:14 -04:00
Jeremy Stretch
71793a8e49 Implemented new object change logging to replace UserActions 2018-06-13 17:06:33 -04:00
Jeremy Stretch
f472544300 Establish tests for the utilities app 2018-06-08 14:32:41 -04:00
Jeremy Stretch
8cfafc9f07 Tweaked webhooks and Redis settings 2018-05-30 14:51:59 -04:00
Jeremy Stretch
ea591b4542 Miscellaneous cleanup of the Webhook model 2018-05-30 13:59:00 -04:00
John Anderson
80a1b23f6f Implements #81 - webhook event backend (#1640)
* merge branch develop

* bugfix, signals for virtualization's class wasn't correctly defined

* updated webhooks for 2.4 and cleanup

* updated docs to cover changes to supervisor config

* review changes and further cleanup

* updated redis connection settings

* cleanup settings
2018-05-30 11:19:10 -04:00
Jeremy Stretch
3ee61197df Added API views & tests for tags 2018-05-22 12:46:14 -04:00
Jeremy Stretch
39830c41e6 Added list and utility views for tags 2018-05-22 12:22:46 -04:00
Jeremy Stretch
9a8f1c6672 Started merging writable serializers (WIP) 2018-04-04 17:01:24 -04:00
Jeremy Stretch
f126120a8d Code formatting cleanup 2018-03-30 13:57:26 -04:00
Jeremy Stretch
4ac941b0b6 Closes #1842: Implement support for Django 2.0 2018-03-30 10:39:22 -04:00
Jeremy Stretch
3b4b71841c Fixes #1975: Correct filtering logic for custom boolean fields 2018-03-29 14:47:35 -04:00
luto
49223c97c6 compare strings using "==" not "is", fixes #1980 2018-03-21 14:28:59 +01:00
Jeremy Stretch
1499d46bd1 Merge branch 'develop' into develop-2.3 2018-02-21 16:16:20 -05:00
Jeremy Stretch
16c9b68b9a Closes #1693: Allow specifying loose or exact matching for custom field filters 2018-02-21 15:40:11 -05:00
Jeremy Stretch
77349a2d2d Fixes #1892: Removed convenience function from an old migration (see #632) to fix database error on extras/0009_topologymap_type 2018-02-21 12:00:38 -05:00
Jeremy Stretch
6b9c193fc2 Closes #78: Implemented ability to render topology maps for console/power 2018-02-15 12:10:29 -05:00
Jeremy Stretch
91059bb311 Merge branch 'develop' into develop-2.3 2018-02-06 14:58:11 -05:00
Jeremy Stretch
8a3045c6df Fixes #1860: Do not populate initial values for custom fields when editing objects in bulk 2018-02-02 21:30:16 -05:00
Jeremy Stretch
c6c165b1d0 Refactored CSV export logic 2018-02-02 11:36:45 -05:00
Jeremy Stretch
8d41447911 Renamed device status constants for clarity 2018-01-25 12:20:24 -05:00
Jeremy Stretch
822b3b6c51 Added bulk creation API tests 2018-01-02 16:29:44 -05:00
Jeremy Stretch
0515adad19 Merge branch 'develop' into develop-2.3 2017-11-14 14:38:32 -05:00
Jeremy Stretch
838bced7c5 Fixes #1703: Added API serializer validation for custom integer fields 2017-11-14 13:15:09 -05:00
Karl
f8903945bb Update 0008_reports.py (#1702)
* Update 0008_reports.py

PG10 version string appears to, at least on Windows, contain a comma.

* Fix missing re import.

Fix missing re import.

* Update 0008_reports.py
2017-11-13 15:11:41 -05:00
Jeremy Stretch
5640b1d1ab Standardize on JSON data format for all POST/PUT test client requests 2017-11-08 13:54:35 -05:00
Jeremy Stretch
55fe30fe8b Closes #1553: Introduced support for bulk object creation via the API 2017-11-07 15:36:10 -05:00
Jeremy Stretch
002848cf09 Closes #1691: Cleaned up and reorganized import statements 2017-11-07 11:08:23 -05:00
Jeremy Stretch
17528294fe Closes #1631: Added a post_run method to the Report class 2017-10-27 10:02:27 -04:00
Jeremy Stretch
09a4cec327 Fixes #1513: Correct filtering of custom field choices 2017-10-20 16:39:13 -04:00
root
6602c2b77c Avoid creating repeated graph nodes where device matches multiple regexps
Fixes #1498
2017-10-16 10:13:39 +00:00
Jeremy Stretch
65cc2905b0 PEP8 fix 2017-10-12 16:07:13 -04:00
Jeremy Stretch
9d9b90a413 Fixes #1576: Move PostgreSQL validation logic into the relevant migration 2017-10-12 16:02:15 -04:00
Jeremy Stretch
42db8a94c2 Fixed typo 2017-10-12 13:47:44 -04:00
Jeremy Stretch
9ba7e3fe6a Added missing permission class to reports API viewset 2017-10-11 14:37:25 -04:00
Jeremy Stretch
6671ded02f Introduced the REPORTS_ROOT config parameter; Python2 fixes 2017-10-11 14:03:35 -04:00
Jeremy Stretch
1f4deac332 Closes #1556: Added API endpoints listing static field choices for each app 2017-10-10 16:41:35 -04:00
Jeremy Stretch
33b4c623d1 Merge branch 'develop-2.2' into develop-2.1 2017-09-29 12:30:36 -04:00
Jeremy Stretch
26c609139e Merge branch 'develop' into develop-2.1 2017-09-29 12:26:54 -04:00
Jeremy Stretch
c5eaaae9e7 Merge pull request #1544 from digitalocean/reports
Closes #1511: Implemented reports
2017-09-28 17:16:10 -04:00
Jeremy Stretch
f9f272426c Restrict the running of reports via API to POST requests 2017-09-28 16:04:37 -04:00
Jeremy Stretch
4f6dd4cc1b Fixed 'failure' field name 2017-09-28 14:57:54 -04:00
Jeremy Stretch
7e0b54eadd Bugfixes 2017-09-28 13:36:50 -04:00
Jeremy Stretch
cceb4c69f8 Expanded report view 2017-09-28 13:35:18 -04:00
Jeremy Stretch
e1bc7edede Added a run view for reports 2017-09-28 12:51:10 -04:00
Jeremy Stretch
4151d49f69 Fixed runreport management command 2017-09-28 12:50:52 -04:00
Jeremy Stretch
0b3cddb56b Moved ReportResult creation into Report.run() 2017-09-28 12:50:32 -04:00
Jeremy Stretch
ec6475e60b Started adding a view for individual reports 2017-09-27 17:39:22 -04:00
Jeremy Stretch
422deae06a Removed custom permission 2017-09-26 17:31:16 -04:00
Jeremy Stretch
d1bcc537e9 Added url field for nested report results 2017-09-26 16:55:25 -04:00
Jeremy Stretch
5aefe987c2 Cleaned up the API quite a bit 2017-09-26 16:36:43 -04:00
Jeremy Stretch
69f90c6342 Extended reports API 2017-09-25 17:27:58 -04:00
Jeremy Stretch
8936528bb0 Merge branch 'develop' of github.com:digitalocean/netbox into develop-2.2 2017-09-25 15:12:47 -04:00
Jeremy Stretch
548642ded9 Fixes #1489: Corrected server error on validation of empty required custom field 2017-09-25 13:37:11 -04:00
Jeremy Stretch
6f401636f8 Implemented rough UI for accessing report results 2017-09-22 12:11:10 -04:00
Jeremy Stretch
c7e54ecde6 Initial work on reports API 2017-09-21 16:32:05 -04:00
Jeremy Stretch
fdba2a1e3c Tweaked report run logic 2017-09-21 13:49:04 -04:00
Jeremy Stretch
70312a73e0 Added virtualization models to nbshell and fixed up status constants 2017-09-20 14:03:56 -04:00
Jeremy Stretch
842ba133cb Initial work on reports 2017-09-19 17:47:42 -04:00
Jeremy Stretch
8dc6eca2d4 Enabled export templates for clusters and virtual machines 2017-09-19 11:31:29 -04:00
Jeremy Stretch
5d5a45fa13 Fixes #1508: Enabled creating custom fields for clusters and virtual machines via the admin UI 2017-09-19 10:40:38 -04:00
Jeremy Stretch
7ec775ebc4 Removed old RPC-based LLDP neighbors code 2017-09-15 14:07:09 -04:00
Jeremy Stretch
bf6f513377 Renamed form_class attribute to model_form for consistency 2017-09-12 13:55:11 -04:00
Jeremy Stretch
6c66a1f72f Fixes #1421: Improved model validation logic for API serializers 2017-08-15 13:54:04 -04:00
Jeremy Stretch
6a0ac79213 Fixes #1415: Ignore leading/trailing semicolons in topology map device lists 2017-08-09 15:46:40 -04:00
Jeremy Stretch
bf90349538 Closes #1375: Renamed NETBOX_USERNAME and NETBOX_PASSWORD configuration parameters to NAPALM_USERNAME and NAPALM_PASSWORD 2017-07-26 11:24:19 -04:00
Faidon Liambotis
0c474a6683 Allow import/export of device types (#1347) 2017-07-25 17:21:34 +03:00
Faidon Liambotis
352191b1e2 Allow import/export of manufacturers (#1347) 2017-07-25 17:21:34 +03:00
Faidon Liambotis
6d6a33484c Allow import/export of rack groups (#1347) 2017-07-25 17:21:34 +03:00
Faidon Liambotis
21429c29ed Allow import/export of regions (#1347) 2017-07-25 17:21:34 +03:00
Jeremy Stretch
05edd0383c PEP8 fix 2017-07-24 14:51:00 -04:00
Jeremy Stretch
28961878b1 lsmodules() should only return native models 2017-07-24 14:34:01 -04:00
Jeremy Stretch
383bfdeba7 Import constants from each app 2017-07-24 14:22:07 -04:00
Jeremy Stretch
3637939742 Fixes #1285: Enforce model validation when creating/editing objects via the API 2017-07-06 17:37:24 -04:00
Jeremy Stretch
1e1d228257 Merge branch 'develop' into develop-2.1
Conflicts:
	netbox/ipam/models.py
	netbox/netbox/settings.py
	netbox/templates/dcim/inc/interface.html
2017-07-06 13:27:13 -04:00
Jeremy Stretch
38278899af Merge pull request #1315 from s11-charendt/develop
Preserve fileextension, regardless of upper or lower case on imageupload
2017-07-05 11:02:18 -04:00
Jeremy Stretch
1af8099382 Fixes #1297: Allow passing custom field choice selection PKs as string-quoted integers 2017-07-05 11:00:43 -04:00
Christian Harendt
4a423e4c3e Preserve fileextension, regardless of upper or lower case on imageuploads 2017-07-04 14:26:35 +02:00
Jeremy Stretch
e39d9cc582 Fixes #1288: Corrected permission name for deleting image attachments 2017-06-19 09:20:03 -04:00
Jeremy Stretch
e879ffc940 Moved constant definitions from models.py to constants.py 2017-06-16 16:01:44 -04:00
Jeremy Stretch
4d4cfba14f Fixes #1274: Exclude unterminated circuits from topology maps 2017-06-15 10:05:14 -04:00
Jeremy Stretch
37b530055f First stab at an interactive shell which pre-imports all models 2017-06-08 16:38:25 -04:00
Jeremy Stretch
87880907d1 #1190: Allow partial string matching when searching on custom fields 2017-06-01 16:57:32 -04:00
Jeremy Stretch
4686b266a6 Fixes #1226: Improve validation for custom field values submitted via the API 2017-05-31 14:09:57 -04:00
Jeremy Stretch
7eaeb19ed9 Created migrations for transition to Unicode literals 2017-05-24 14:18:52 -04:00
Jeremy Stretch
297d9c6bb9 Import unicode_literals 2017-05-24 11:33:11 -04:00
Jeremy Stretch
7ec0b1b458 #1177: Render planned connections as dashed lines on topology maps 2017-05-15 13:11:20 -04:00
Jeremy Stretch
29ea0066f7 Closes #1179: Adjust topology map text color based on node background 2017-05-15 12:56:16 -04:00
Jeremy Stretch
eae57841b8 Fixes #1150: Error when uploading image attachments with Unicode names under Python 2 2017-05-09 17:12:45 -04:00
Jeremy Stretch
5a2cf6c6f3 Closes #154: Expand device status field options 2017-05-08 13:55:19 -04:00
Jeremy Stretch
369abefed6 Fixes #1114: Suppress OSError when attempting to access a delete image attachment 2017-04-28 14:26:17 -04:00
Jeremy Stretch
50651026de Fixes #1113: Fixes server error when attempting to delete an image attachment 2017-04-28 14:05:02 -04:00
Jeremy Stretch
98ee6c95d3 Merge branch 'writable-custom-fields' into v2-develop 2017-04-27 13:05:44 -04:00
Jeremy Stretch
42b9d479cf Corrected tests and improved validation 2017-04-27 12:46:04 -04:00
Jeremy Stretch
7170da08a5 Fixes #1107: Corrected exception on creating/deleting image attachments 2017-04-27 11:32:08 -04:00
Jeremy Stretch
8cc7571e67 Added custom field API tests 2017-04-25 14:53:18 -04:00
Jeremy Stretch
a4028a7126 Got rudimentary custom field creates/updates working 2017-04-25 13:00:28 -04:00
Jeremy Stretch
93086099cd Colored nodes in topology maps 2017-04-06 14:12:30 -04:00
Jeremy Stretch
cd767261c3 Closes #430: Include circuits when rendering topology maps 2017-04-05 17:24:40 -04:00
Jeremy Stretch
4384993546 Resolved RemovedInDjango20Warning deprecation warnings 2017-04-05 14:40:25 -04:00
Jeremy Stretch
e46675aa22 Rearranged URL namespaces to satisfy deprecation warnings 2017-04-05 14:26:33 -04:00
Jeremy Stretch
ca1895e237 Bump migration index due to a new migration in 1.9.4-r1 2017-04-04 15:59:33 -04:00
Jeremy Stretch
e0564fe568 Merge branch 'develop' into v2-develop 2017-04-04 15:56:33 -04:00
Jeremy Stretch
7ed56a113c Fixes #1034: Missing migration 2017-04-04 15:46:27 -04:00
Jeremy Stretch
79b18b178b Corrected CustomFieldModelSerializer behavior when serializing lists of objects 2017-04-04 14:09:14 -04:00
Jeremy Stretch
3f6f164574 Merge branch 'develop' into v2-develop
Conflicts:
	netbox/netbox/settings.py
2017-04-04 12:06:49 -04:00
Jeremy Stretch
2dcd3010da Refactored custom field serializers 2017-04-04 11:25:23 -04:00
Jeremy Stretch
c7a3780f7f Fixed deprecated references to ImageAttachment.obj 2017-04-03 15:51:45 -04:00
Jeremy Stretch
eef22e5c52 Fixes #1022: Record user actions when creating IP addresses in bulk 2017-04-03 14:45:20 -04:00
Jeremy Stretch
f9e3534dab Merge pull request #1026 from digitalocean/image-attachments
#152: Image attachments
2017-04-03 14:21:15 -04:00
Jeremy Stretch
1150e8e97b Implemented API endpoints for ImageAttachments 2017-04-03 14:00:15 -04:00
Jeremy Stretch
042076c032 Fixes #1025: Applied missing API view filters 2017-04-03 11:04:17 -04:00
Jeremy Stretch
c6e3810265 Initial work on #152: Image attachments 2017-03-30 21:55:57 -04:00
Jeremy Stretch
a0c3b7dc0d RPC API fixes 2017-03-21 17:24:16 -04:00
Jeremy Stretch
be56d01a1d Renamed Module to InventoryItem (prep for #824) 2017-03-21 12:54:08 -04:00
Jeremy Stretch
8c15daf697 Fixed browsable API breadcrumbs 2017-03-20 21:50:10 -04:00
Jeremy Stretch
73be1297a5 Removed custom renderers 2017-03-20 17:47:18 -04:00
Jeremy Stretch
9ba11806b2 Fixed custom renderers to work with paginated data 2017-03-20 17:15:42 -04:00
Jeremy Stretch
5577d67223 Wrote API endpoints, tests for ExportTemplates 2017-03-20 16:21:10 -04:00
Jeremy Stretch
15ecd734c6 Added API endpoint, tests for Graphs 2017-03-20 15:14:33 -04:00
Jeremy Stretch
90fbaeb0c2 Make CI happy 2017-03-17 17:39:56 -04:00
Jeremy Stretch
c072bedd02 Restore not-so-extraneous 'id' field to all WritableSerializers 2017-03-17 17:32:43 -04:00
Jeremy Stretch
8099d51a85 Removed deprecated GraphListView 2017-03-09 14:28:52 -05:00
Jeremy Stretch
1b1cb25826 Closes #855: Added an API endpoint for recent activity 2017-03-09 14:26:39 -05:00
Jeremy Stretch
e26707f898 Fixed serialization of CustomFieldChoices 2017-03-09 13:50:30 -05:00
Jeremy Stretch
78f0d583b0 Standardized API URL definitions 2017-03-09 13:24:02 -05:00
Jeremy Stretch
97006f15ec Cleanup 2017-03-08 16:30:32 -05:00
Jeremy Stretch
79c8be97e4 Moved custom field serializers to their own module to avoid circular dependency 2017-03-08 16:18:41 -05:00
Jeremy Stretch
7b5f59852f Moved TopologyMaps from DCIM to extras 2017-03-08 16:12:14 -05:00
Jeremy Stretch
6326894a4f Merge branch 'develop' into api2
Conflicts:
	netbox/dcim/api/views.py
2017-03-07 14:08:06 -05:00
Jeremy Stretch
36ecc890e9 Fixes #941: Corrected old references to rack.site on Device 2017-03-06 10:23:24 -05:00
Jeremy Stretch
3a9d874d5c Re-implemented CustomFieldSerializer (read-only for now) 2017-02-09 16:55:54 -05:00
Jeremy Stretch
f8b35f0395 Implemented static writable ModelSerializers for all models 2017-01-31 15:35:09 -05:00
Jeremy Stretch
ba78981697 Converted nested serializers to HyperlinkedModelSerializer 2017-01-27 12:22:29 -05:00
Jeremy Stretch
4d72ee291b Initial work on API v2.0 2017-01-24 17:12:16 -05:00
Jens L
395b26374a Basic Support for Python 3 (#827)
* Rudimentary python3 support

* update docs and trigger Travis

* fix some of the tests

* fix all python3 errors

* change env calls to just python

* add @python_2_unicode_compatible decorator to models for python2 compatibility

* switch netbox.configuration to from netbox import configuration
2017-01-23 16:44:29 -05:00
Jeremy Stretch
4077ec0ce6 Fixes #769: Show default value for boolean custom fields 2017-01-04 09:47:26 -05:00
Jeremy Stretch
6c25c66bd1 Closes #722: Enabled custom fields for device types 2016-12-16 10:54:45 -05:00
Jeremy Stretch
00982bcd04 Fixes #732: Allow custom select field values to be deselected if the field is not required 2016-12-07 14:00:52 -05:00
Jeremy Stretch
193afa4338 Fixes #720: Display user action links properly in admin UI 2016-12-06 13:16:42 -05:00
Jeremy Stretch
0f08e703f6 #702: Fix lingering Unicode incompatibility 2016-11-29 17:33:22 -05:00
Jeremy Stretch
96cffd9295 Fixes #702: Improved Unicode support for custom fields 2016-11-29 13:34:22 -05:00
Jeremy Stretch
536777e38f Fixes #632: Use semicolons instead of commas to separate regexes in topology maps 2016-11-03 14:49:02 -04:00
Jeremy Stretch
41268b48e2 Miscellaneous cleanup 2016-11-03 14:15:57 -04:00
Jeremy Stretch
75190bb2e9 Fixes #527: Support for nullifying custom fields during bulk editing 2016-10-05 15:17:17 -04:00
Jeremy Stretch
369a7f4a3f #527: Initial work to allow nullifying fields during bulk edit 2016-09-30 16:17:41 -04:00
Jeremy Stretch
92494d35b1 Fixes #581: Corrected initialization of custom boolean and select fields 2016-09-28 09:58:59 -04:00
Jeremy Stretch
bb9fd42722 Closes #579: Add a description field to ExportTemplate 2016-09-27 16:31:18 -04:00
Jeremy Stretch
92e4ce0d1e Fixes #577: Correct initialization of custom boolean fields 2016-09-27 13:42:10 -04:00
Jeremy Stretch
5d2080f87c Closes #575: Allow all valid URL schemes in custom fields 2016-09-27 11:42:20 -04:00
Jeremy Stretch
0a790de87f Fixes #576: Delete all relevant CustomFieldValues ehen deleting a CustomFieldChoice 2016-09-27 10:51:33 -04:00
Jeremy Stretch
9ea32b2906 Tweaked ExportTemplate admin display 2016-09-21 11:57:05 -04:00
Jeremy Stretch
a52cfe268e Quick fix for v1.6.1 related to #561 2016-09-21 11:43:22 -04:00
Jeremy Stretch
a3f664ce7b Closes #561: Make custom fields accessible from within export templates 2016-09-19 16:11:37 -04:00
Jeremy Stretch
86b9822a18 Closes #552: Added a None filter option for custom select fields 2016-09-16 13:42:07 -04:00
Jeremy Stretch
cf4dada7bf Corrected filtering of boolean custom fields 2016-09-12 15:59:43 -04:00
Jeremy Stretch
0de97589e6 Fixes #544: Strip CRLF-style line terminators from rendered export templates 2016-09-12 10:42:59 -04:00
Jeremy Stretch
2659f36a32 Added URL custom field type; added is_filterable toggle; fixed bulk editing 2016-08-23 16:45:26 -04:00