Commit Graph

627 Commits

Author SHA1 Message Date
Jeremy Stretch
68eafb180a Rename get_subquery() to count_related() 2020-12-17 14:47:49 -05:00
Jeremy Stretch
cfbe7ec948 Call Coalesce() inside get_queryset() 2020-12-17 14:45:50 -05:00
Jeremy Stretch
bb69f9aee9 Fixes #5486: Optimize retrieval of config context data for device/VM REST API views 2020-12-17 14:03:10 -05:00
Daniel Sheppard
b3999381f9 Fixes: #5450 - Added Coalesce to viewsets for the _count functions 2020-12-15 12:50:28 -06:00
Jeremy Stretch
89ec24caa2 Include nested representation of nodes within each CablePath 2020-12-02 14:30:05 -05:00
Jeremy Stretch
1037e78f18 Standardize validation of interface VLAN assignments 2020-12-02 14:19:02 -05:00
Jeremy Stretch
84fe653306 Merge branch 'develop' into develop-2.10 2020-12-01 11:42:55 -05:00
Jeremy Stretch
0b8eb6e329 Closes #4865: Replace all Count() annotations with subqueries (#5385)
* Convert circuits to use subqueries

* Convert dcim to use subqueries

* Convert extras to use subqueries

* Convert ipam to use subqueries

* Convert secrets to use subqueries

* Convert virtualization to use subqueries

* Update global search view to use subqueries where appropriate

* Remove extraneous order_by() calls
2020-11-25 15:49:18 -05:00
Jeremy Stretch
2977e80b16 Add support for tracing split paths 2020-11-16 15:49:07 -05:00
Jeremy Stretch
e77d851426 Merge branch 'develop' into develop-2.10 2020-11-09 20:58:59 -05:00
Jeremy Stretch
d45f06fde4 Closes #5327: Be more strict when capturing anticipated ImportError exceptions 2020-11-09 16:49:05 -05:00
Jeremy Stretch
124a43b63f Merge branch 'develop' into develop-2.10 2020-10-30 10:38:05 -04:00
John Anderson
ffe01cb42b move get_queryset() to common mixin 2020-10-30 02:56:43 -04:00
John Anderson
152fe800c7 add support for regions and vms 2020-10-23 01:18:04 -04:00
John Anderson
cdd1948721 initial work on config context performance improvements 2020-10-20 01:07:22 -04:00
Jeremy Stretch
219d07f997 Reorganize REST API components under netbox app 2020-10-13 15:57:21 -04:00
Jeremy Stretch
11cd595f23 Handle split paths 2020-10-08 14:01:47 -04:00
Jeremy Stretch
a52cf93b2f Add /trace API endpoints for CircuitTermination and PowerFeed 2020-10-08 13:55:29 -04:00
Jeremy Stretch
2e55470d5e Standardize cable/connection field ordering 2020-10-08 11:23:24 -04:00
Jeremy Stretch
94ad5be480 Replace connection_status with connected_endpoint_reachable on InterfaceConnectionSerializer 2020-10-08 11:15:09 -04:00
Jeremy Stretch
318d3bf81b Add cable paths API detail view for pass-through ports 2020-10-08 10:32:17 -04:00
Jeremy Stretch
c9cb0540d7 Correct serializer field lists 2020-10-06 15:27:40 -04:00
Jeremy Stretch
056285dcd2 Include cable_peer on CableTermination serializers 2020-10-06 14:30:46 -04:00
Jeremy Stretch
3fee32ef6e Prefetch path & destination for API views 2020-10-06 10:41:52 -04:00
Jeremy Stretch
72700f7996 PowerFeedSerializer should subclass ConnectedEndpointSerializer 2020-10-05 11:39:17 -04:00
Jeremy Stretch
bc41a9dd97 Rename connection_status to connected_endpoint_reachable 2020-10-05 11:32:39 -04:00
Jeremy Stretch
8c3a6b6fc5 Rename CablePath.is_connected to is_active 2020-10-05 11:13:33 -04:00
Jeremy Stretch
89ca56a975 Remove legacy connection_status fields 2020-10-05 10:47:41 -04:00
Jeremy Stretch
865a2d5c77 Remove legacy connected endpoint fields 2020-10-05 09:56:46 -04:00
Jeremy Stretch
4c4a09ae1b Replace legacy trace() method 2020-10-02 14:54:16 -04:00
Jeremy Stretch
f07aaccb84 Capture path end-to-end status in CablePath 2020-10-01 16:42:57 -04:00
Jeremy Stretch
57c0de3ed9 Drop support for split paths 2020-10-01 14:24:34 -04:00
Jeremy Stretch
42b17aa9a4 Closes #1846: Enable MPTT for InventoryItem hierarchy 2020-09-18 10:18:03 -04:00
Jeremy Stretch
6f437ea97d Fixes #5146: Add custom fields support for cables, power panels, rack reservations, and virtual chassis 2020-09-17 14:22:14 -04:00
Jeremy Stretch
dd06bbcaf6 Closes #4349: Drop support for embedded graphs 2020-08-21 11:57:46 -04:00
Jeremy Stretch
61d2692029 Closes #4997: Introduce OrderedDefaultRouter; move root API views to views.py 2020-08-13 12:49:49 -04:00
Jeremy Stretch
f3f4c38b07 Closes #4994: Add cable attribute to PowerFeed API serializer 2020-08-13 10:30:28 -04:00
Jeremy Stretch
29c77acf87 Fixes #4903: Fix member count when searching for virtual chassis 2020-08-07 08:54:02 -04:00
Jeremy Stretch
e4d78608c8 Fixes #4950: Include inventory item label in API serializer, UI view 2020-08-05 10:11:38 -04:00
Jeremy Stretch
fdf2dc8912 Closes #4940: Added an occupied field to rack unit representations for rack elevation views 2020-08-03 13:37:32 -04:00
Jeremy Stretch
3ad3e9146f Fixes #4921: Render non-viewable devices as unavailable space in rack elevations 2020-07-29 09:43:13 -04:00
Jeremy Stretch
05e7af702b Remove restriction enforcement from RestrictedQuerySet 2020-07-23 12:48:03 -04:00
Jeremy Stretch
96d058c231 Merge branch 'develop' into develop-2.9 2020-07-21 12:57:02 -04:00
Jeremy Stretch
43a4590014 Closes #4871: Specify ordering for querysets using annotate() to count related objects 2020-07-20 12:07:19 -04:00
Josh VanDeraa
754ff4a599 Moves location of the IP address / hostname check and assignment 2020-07-13 08:36:15 -05:00
Josh VanDeraa
ee4e5ad525 Adds verification of device.name configured 2020-07-10 16:18:58 -05:00
Josh VanDeraa
b8169778be Adds to NAPALM, name lookup if no primary IP address for device 2020-07-10 15:12:25 -05:00
Jeremy Stretch
7b94ea92ef Merge branch 'develop' into develop-2.9 2020-07-09 16:38:37 -04:00
Jeremy Stretch
1a6267e89a Closes #4837: Use dynamic form widget for relationships to MPTT objects 2020-07-09 09:50:01 -04:00
Sander Steffann
3affd467e1 Fix typo in format string 2020-07-08 22:20:20 +02:00
Jeremy Stretch
5909a9b01e Closes #4806: Add a url field to all API serializers 2020-07-06 16:41:08 -04:00
Jeremy Stretch
1d64348563 Extend label field to all device components 2020-07-02 11:18:08 -04:00
Jeremy Stretch
779dc8be86 Merge branch 'develop' into develop-2.9 2020-07-02 10:01:01 -04:00
Jeremy Stretch
48716ff75b Merge pull request #4797 from netbox-community/4695_fix_api_cable_choices_termination_types
Fixes #4695 - Add Metadata class that returns content type choices
2020-07-01 11:03:01 -04:00
Jeremy Stretch
6e100ba372 Closes #4793: Add description field to device component templates 2020-06-30 15:12:53 -04:00
Jeremy Stretch
5d9ab02f87 Closes #4796: Introduce configuration parameters for default rack elevation size 2020-06-30 09:26:32 -04:00
Jeremy Stretch
c4040a517d Fix evaluation of RestrictedQuerySet 2020-06-29 14:41:43 -04:00
Jeremy Stretch
3445147773 Fix unrestricted evaluations of RestrictedQuerySet 2020-06-29 13:31:26 -04:00
Jeremy Stretch
487013fd25 Call restrict() when retrieving related Graphs 2020-06-29 10:14:43 -04:00
Daniel Sheppard
79942d7242 #4695 - Rename LimitedMetaData to ContentTypeMetadata 2020-06-26 11:09:27 -05:00
Daniel Sheppard
e40f9444f0 #4695 - Add Metadata class that returns content type choices 2020-06-26 10:59:21 -05:00
Jeremy Stretch
1a52a7b88a Initial work on #2018: Add name to VirtualChassis 2020-06-24 15:21:42 -04:00
Sander Steffann
e04a7cdbd0 Revert "Bumping version just to test the GitHub Action"
This reverts commit 203f5204
2020-06-24 13:09:11 +02:00
Sander Steffann
203f52046d Bumping version just to test the GitHub Action 2020-06-24 13:07:54 +02:00
Jeremy Stretch
f03969dcec Merge pull request #4770 from netbox-community/3703-limit-tag-creation
Closes #3703: Restrict tag creation
2020-06-17 12:28:04 -04:00
Jeremy Stretch
0b165e12a8 Replace TaggitSerializer and TagListSerializerField with TaggedObjectSerializer 2020-06-17 09:57:17 -04:00
Jeremy Stretch
59c5d1e57e Merge branch 'develop' into develop-2.9 2020-06-15 16:04:32 -04:00
Jeremy Stretch
7c5a8c959d Merge pull request #4723 from jsenecal/4615_interface_label
Closes: #4615 Physical labels
2020-06-11 13:03:46 -04:00
Jonathan Senecal
441b371719 Add label to DeviceBay models and serializers 2020-06-11 10:19:53 -04:00
Jeremy Stretch
8103a31069 Closes #4742: Add tagging for cables, power panels, and rack reservations 2020-06-10 14:55:46 -04:00
Jeremy Stretch
cf78f3d3a1 Fixes #4736: Add cable trace endpoints for pass-through ports 2020-06-09 15:12:10 -04:00
Jonathan Senecal
beb6488d9c pycodestyle 2020-06-08 23:07:53 -04:00
Jeremy Stretch
90f0a72e94 Merge branch 'develop' into develop-2.9 2020-06-08 10:33:23 -04:00
Jeremy Stretch
2d3619c4e1 Fix list_brief tests 2020-06-05 16:09:55 -04:00
Jeremy Stretch
7d13c80400 Fixes #4725: Fix "brief" rendering of various REST API endpoints 2020-06-05 15:49:06 -04:00
Jonathan Senecal
d59102e98c Add label to *port serializers 2020-06-05 10:42:13 -04:00
Jonathan Senecal
b561c0bb76 Add label to Interface serializers 2020-06-04 16:50:51 -04:00
Jeremy Stretch
115fbecb44 Update custom napalm_read, napalm_write permissions 2020-06-02 09:46:32 -04:00
Jeremy Stretch
05def79739 Adapt tracing view to account for split ends (WIP) 2020-04-15 17:09:04 -04:00
Jeremy Stretch
d8bdc0eb62 Fixes #4496: Fix exception when validating certain models via REST API 2020-04-15 09:37:30 -04:00
Jeremy Stretch
c397830b1c Merge branch 'develop' into develop-2.8 2020-04-08 13:50:15 -04:00
Daniel Sheppard
854dd643ab Fixes: #4396 - Fix typing on interface serializer 2020-04-07 08:33:00 -05:00
Jeremy Stretch
8ba6dad2bb Merge branch 'develop' into develop-2.8 2020-04-06 13:51:05 -04:00
Jeremy Stretch
7af91e2409 Closes #4147: Use absolute URLs in rack elevation SVG renderings 2020-04-03 13:16:35 -04:00
Jeremy Stretch
e836fe3378 Merge branch 'develop' into develop-2.8 2020-03-27 12:53:55 -04:00
Jeremy Stretch
62f2da45c1 Remove unused follow_circuits arg for cable tracing 2020-03-18 21:14:53 -04:00
Jeremy Stretch
97ecfee3d1 Add a description field to all organizational models 2020-03-13 16:33:28 -04:00
Jeremy Stretch
4bda842fae Remove FieldChoicesViewSet 2020-03-12 10:48:17 -04:00
Jeremy Stretch
b2b15ebdd1 Implement nested RackGroups 2020-03-11 14:40:29 -04:00
Jeremy Stretch
ed2f997c9c Merge branch 'develop' into develop-2.8 2020-03-03 13:20:00 -05:00
Jeremy Stretch
d61f0b6983 Fixes #4272: Interface type should be required by API serializer 2020-02-25 11:20:43 -05:00
Daniel Sheppard
81dd5ff6ef 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
84ef710872 Fixes #4252: Fix power port assignment for power outlet templates created via REST API 2020-02-24 10:13:47 -05:00
Dan Sheppard
28b8952299 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
fc0e3ba6ef Merge branch 'develop' into develop-2.8 2020-02-21 15:26:55 -05:00
Jeremy Stretch
ead34635f6 #1529: Add front/rear image fields to DeviceType serializer 2020-02-20 14:37:08 -05:00
Jeremy Stretch
0fc3d693e9 Add ability to toggle the inclusion of device images when rendering a rack elevation SVG 2020-02-20 13:09:43 -05:00
Jeremy Stretch
30788b3873 Closes #3753: Remove rack units endpoint (replaced with elevation) 2020-02-14 13:59:07 -05:00
Jeremy Stretch
9e119f56d9 Fixes #4083: Permit nullifying applicable choice fields via API requests 2020-02-10 15:10:33 -05:00
Jeremy Stretch
ec5a5551c2 Fixes #4094: Convert unnecessary regular expressions to strings in URL patterns 2020-02-05 16:12:48 -05:00
Jeremy Stretch
4909a8b672 #3892: Convert CABLE_TERMINATION_TYPES to a Q object 2020-01-15 15:51:51 -05:00
Jeremy Stretch
c19ad86328 Refactor FieldChoicesViewSet; add Interface.type to virtualization _choices endpoint 2020-01-15 09:59:44 -05:00
Jeremy Stretch
a1f62f63f7 Add _choices endpoint tests for all apps 2020-01-14 16:13:11 -05:00
Jeremy Stretch
dbaeac67b8 Renamed dcim FilterSets 2020-01-09 20:30:40 -05:00
Jeremy Stretch
1478cb5a52 Merge branch 'develop' into develop-2.7 2020-01-09 15:27:06 -05:00
Jeremy Stretch
788f76b962 Merge pull request #3863 from hSaria/2113-napalm-settings
Fixes #2113: NAPALM driver settings
2020-01-09 11:56:32 -05:00
Saria Hajjar
8690ba0c67 Changed NAPALM- prefix to X-NAPALM- 2020-01-09 16:48:26 +00:00
Saria Hajjar
b6fb10e5c2 Removed exception for empty methods
I'll create a seperate ticket for that
2020-01-09 16:40:13 +00:00
Saria Hajjar
813262ff88 Moved NAPALM parameter to decorator 2020-01-09 16:39:13 +00:00
Saria Hajjar
cbda0c0c5d Corrected optional arg assignment 2020-01-08 16:01:18 +00:00
Saria Hajjar
42c2dbe61b Fixes #2113: Adjust NAPALM settings with headers 2020-01-08 15:53:48 +00:00
Saria Hajjar
02d8a4547f Fixes #1982: Swagger NAPALM documentation 2020-01-08 13:34:46 +00: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
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
John Anderson
21cd260a6c review updates to svg rendering 2019-12-11 13:39:10 -05:00
John Anderson
672afac981 drf-yasg updates for rack elevations 2019-12-11 09:45:08 -05:00
Jeremy Stretch
29f1201934 Add description field to RackRole and DeviceRole models (#3655) 2019-12-10 12:53:28 -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
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
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
ad9d33550f Closes #3731: Change Graph.type to a ContentType foreign key field 2019-12-06 10:32:59 -05:00
Jeremy Stretch
019db0f60f PowerOutlet.feed_leg to slug (#3569) 2019-11-27 21:30:11 -05:00
Jeremy Stretch
a295dde4d7 PowerFeed.status to slug (#3569) 2019-11-25 21:22:14 -05:00
Jeremy Stretch
4bb6809f9d PowerFeed.phase to slug (#3569) 2019-11-25 21:14:04 -05:00
Jeremy Stretch
69a276d0d6 PowerFeed.supply to slug (#3569) 2019-11-25 21:08:34 -05:00
Jeremy Stretch
f197dd5f5d PowerFeed.type to slug (#3569) 2019-11-25 21:03:11 -05:00
Jeremy Stretch
7c9f810555 Rack.outer_unit to slug (#3569) 2019-11-25 20:54:24 -05:00
Jeremy Stretch
523475de55 Cable.length_unit to slug (#3569) 2019-11-25 20:40:29 -05:00
Jeremy Stretch
9aff8a6568 Front/RearPort.type to slug (#3569) 2019-11-25 19:39:25 -05:00
Jeremy Stretch
30eaafc2b7 Device.face to slug (#3569) 2019-11-25 19:23:43 -05:00
Jeremy Stretch
b1a4be03fb Site.status to slug (#3569) 2019-11-21 22:54:01 -05:00
Jeremy Stretch
67b014ab14 Interface.mode to slug (#3569) 2019-11-21 22:50:01 -05:00
Jeremy Stretch
7cf5445365 Interface.type to slug (#3569) 2019-11-21 22:11:02 -05:00
Jeremy Stretch
0c2d66952b DeviceType.subdevice_role to slug (#3569) 2019-11-18 22:08:33 -05:00
Jeremy Stretch
304b92512a Device.face to slug (#3569) 2019-11-16 21:46:07 -05:00
Jeremy Stretch
631e941eb9 Rack.status to slug (#3569) 2019-11-15 22:03:41 -05:00
Jeremy Stretch
28c723350e Convert RACK_WIDTH_CHOICES to ChoiceSet 2019-11-15 21:33:56 -05:00
Jeremy Stretch
bcf56b59a7 Rack.status to slug (#3569) 2019-11-15 21:31:57 -05:00
Jeremy Stretch
ace420c52f Convert all DCIM choice classes to ChoiceSets 2019-11-15 21:17:01 -05:00
Jeremy Stretch
b486eb19b4 Convert console port types to slugs (#3569) 2019-11-06 16:56:46 -05:00
Jeremy Stretch
34e7139b64 Initial work on #792 2019-11-06 15:30:54 -05:00
Jeremy Stretch
acd5ccccef Closes #1865: Add console port and console server port types 2019-10-30 14:25:55 -04:00
Jeremy Stretch
429fe9223a Merged v2.6.4 2019-09-20 08:35:14 -04:00
Jeremy Stretch
f426334c2e Closes #3485: Enable embedded graphs for devices 2019-09-18 15:59:52 -04:00
Jeremy Stretch
f012c662f0 Fixes #3511: Correct API URL for nested device bays 2019-09-18 14:40:47 -04:00
Jeremy Stretch
8ff80afe70 Fixes #3513: Fix assignment of tags when creating front/rear ports 2019-09-18 14:33:47 -04:00
Jeremy Stretch
212252d0ea Merge v2.6.3 2019-09-04 16:45:33 -04:00
John Anderson
8bd1a48973 fixes #3428 - caching invalidation issues
Mitgate invalidation issues by using prefetch_related instead of select_related.
Also use invalidated_update instead of just update.
2019-08-19 01:53:39 -04:00
Jeremy Stretch
094b820098 Remove deprecated form_factor accessor on Interface and InterfaceTemplate 2019-08-08 21:35:59 -04:00
Daniel Sheppard
bab58992aa Fixes #3370 - Add filter class to VirtualChassis API 2019-07-24 12:22:15 -05:00
Jeremy Stretch
a061e01540 Rename power_factor to max_utilization 2019-06-17 14:52:11 -04:00
Jeremy Stretch
d6e3c922ed Fix PowerPort connected_endpoint filtering, ordering 2019-04-25 15:06:48 -04:00
Jeremy Stretch
b347507177 Remove extraneous imports 2019-04-19 16:58:39 -04:00
Jeremy Stretch
a5bbd95093 Added '*_count' fields for child objects 2019-04-19 16:50:42 -04:00
Jeremy Stretch
7d1d0d0ebf Implement get_subquery() for annotation of child object counts; Rename dcim.Site 'count_*' fields 2019-04-19 16:09:22 -04:00
Jeremy Stretch
94837647d7 Misc cleanup 2019-04-19 14:56:40 -04:00
Jeremy Stretch
47bf03dd97 Replace distinct annotations with subqueries for much better performance 2019-04-12 17:18:04 -04:00
Jeremy Stretch
e8d09e97fa Added child counts to API serializers (WIP) 2019-04-12 17:07:56 -04:00
Jeremy Stretch
b34b816478 Maintain backward-compatibile support for Interface.form_factor until v2.7 2019-04-12 13:57:33 -04:00
Jeremy Stretch
fd4802b8f3 Rename form_factor to type on dcim.Interface 2019-04-12 13:42:56 -04:00
Jeremy Stretch
6d9ef51be7 Added tests for power panels, power feeds 2019-04-11 12:29:43 -04:00
Jeremy Stretch
f6e7014a73 Fix tests 2019-04-11 11:37:44 -04:00
Jeremy Stretch
acaf05c090 Misc cleanup 2019-04-11 10:49:43 -04:00
Jeremy Stretch
3d77eed6e2 Rename max_utilization to power_factor 2019-04-10 16:36:38 -04:00
Jeremy Stretch
2076c0f494 Add associatiton from power outlet to power port/phase 2019-04-10 14:16:16 -04:00
Jeremy Stretch
b74db3a0cd Add max/allocated current draw fields to PowerPort 2019-04-09 17:32:04 -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
e31ae592f4 Fixes #3036: DCIM interfaces API endpoint should not include VM interfaces 2019-04-04 15:07:41 -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
61f074a47f Fixes #3022: Add missing cable termination types to DCIM _choices endpoint 2019-03-22 16:26:56 -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
Jeremy Stretch
6552c1bb95 Added filters for power panels & feeds 2019-03-12 12:05:58 -04:00
Jeremy Stretch
757ab3152d More power work 2019-03-12 11:36:29 -04:00
Jeremy Stretch
80d8035f0e Fixes #2968: Correct API documentation for SerializerMethodFields 2019-03-08 10:25:09 -05:00
Jeremy Stretch
4bb54bb403 Merge branch 'develop' into develop-2.6 2019-03-05 13:39:00 -05:00
Anthony Ruhier
0849490ac1 Allow nullable length unit in cable API
Cables models define it as None by default, but the API rejects a
request containing a null length_unit. Allows it in the API
serializer.
2019-03-05 18:44:44 +01: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
c263e596cb Fixes #2938: Exclude circuit terminations from API interface connections endpoint 2019-02-28 09:59:17 -05:00
Jeremy Stretch
d6bd5c96f2 Closes #2643: Add description field to console/power components and device bays 2019-02-20 14:34:05 -05:00
John Anderson
ab3e509972 implemented #2350 - config context included by default in API 2019-02-18 21:37:00 -05:00
Jeremy Stretch
0bf4b439c1 Fixes #2845: Enable filtering of rack unit list by unit ID 2019-02-06 10:44:05 -05:00
Jeremy Stretch
c882a7b5be Fixes #2857: Add display_name to DeviceType API serializer; fix DeviceType list for bulk device edit 2019-02-06 10:23:30 -05:00
Jeremy Stretch
195817d478 Fixes #2762: Add missing DCIM field values to API _choices endpoint 2019-01-08 11:51:13 -05:00
Jeremy Stretch
3716d78ee0 Fixes #2691: Cable trace should follow circuits 2018-12-19 12:48:20 -05:00
Jeremy Stretch
162500a56d Fixes #2680: Disallow POST requests to /dcim/interface-connections/ API endpoint 2018-12-12 09:20:07 -05:00
Jeremy Stretch
13edc47a4d Merge v2.5 work 2018-12-07 10:51:28 -05:00
Jeremy Stretch
d6802ed283 Fix representation of connected_endpoint_type for non-connected components 2018-12-06 16:39:03 -05:00
Jeremy Stretch
aeb14a8919 Closes #2649: Add connected_endpoint_type to connectable device component API representations 2018-12-06 16:14:03 -05:00
Jeremy Stretch
85c6c923a9 Closes #2648: Include the connection_status field in nested represenations of connectable device components 2018-12-06 12:14:54 -05:00
Jeremy Stretch
db5b069a56 Add missing choices for new cable and rack fields 2018-12-04 15:15:40 -05:00
Jeremy Stretch
9a9c72d0aa Fixes #2576: Correct type for count_* fields in site API representation 2018-11-27 16:27:47 -05:00
Jeremy Stretch
6b1abd6a65 Closes #2614: Simplify calls of super() for Python 3 2018-11-27 10:52:24 -05:00
Jeremy Stretch
a0b8e05653 Closes #2601: Added a description field to pass-through ports 2018-11-20 21:28:19 -05:00
Jeremy Stretch
b5ef607224 Merge v2.4.8 2018-11-20 12:28:24 -05:00
Jeremy Stretch
8ce3a4b1f8 Standardized behavior and display of connection_status 2018-11-19 15:26:06 -05:00
Jeremy Stretch
d813e374e8 Fixes #2588: Catch all exceptions from failed NAPALM API Calls 2018-11-14 10:12:35 -05:00
Jeremy Stretch
9a4f3453fb Closes #2578: Reorganized nested serializers 2018-11-12 11:36:44 -05:00
Jeremy Stretch
4835b3c609 Re-implemented connected device API view & test 2018-11-06 11:44:32 -05:00
Jeremy Stretch
10c3d51096 Merge release v2.4.7 into develop-2.5 2018-11-06 11:19:38 -05:00
John Anderson
df14c7204d add temporary support for hyphenated query params for #2549 2018-11-06 10:08:00 -05:00
John Anderson
063c15fc3b fixed #2549 - incorrect naming of peer-device and peer-interface 2018-11-06 00:51:55 -05:00
Jeremy Stretch
3495921b76 Closes #1931: Added a count of assigned IP addresses to the interface API serializer 2018-11-05 14:32:22 -05:00
Jeremy Stretch
68af33c93f Removed 'interface_ordering' field from DeviceType 2018-11-05 12:02:55 -05: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
680692f64b Closes #450: Add 'outer_width' and 'outer_depth' fields to Rack 2018-11-02 09:51:17 -04:00
Jeremy Stretch
25df59d1e4 Closes #1444: Add field to Rack model 2018-11-02 09:17:51 -04:00
Jeremy Stretch
e840197e01 Closes #2104: Add 'status' field to Rack 2018-11-01 16:03:42 -04:00
Jeremy Stretch
d3bfaba2ad Fixed cable list display for circuit terminations 2018-11-01 14:14:31 -04:00
Jeremy Stretch
d5a06f49f8 connected_endpoint must be read-only on termination serializers 2018-10-31 16:12:36 -04:00
Jeremy Stretch
8e8e690cb6 Fix NestedCableSerializer 2018-10-30 14:58:04 -04:00
Jeremy Stretch
459faad4b0 Added initial tests for cable connections 2018-10-30 14:28:46 -04:00
Jeremy Stretch
7e828b7f2a Extended Cables to connect CircuitTerminations 2018-10-30 12:16:22 -04:00
Jeremy Stretch
c7fcef4508 Introduced a 'trace' API endpoint for cable terminations 2018-10-29 15:43:41 -04:00
Jeremy Stretch
3425e859c4 Replace 'is_connected' boolean with Cable attachment 2018-10-29 13:36:41 -04:00
Jeremy Stretch
2e4499e4b3 Optimized API views 2018-10-29 13:26:09 -04:00
Jeremy Stretch
90b25d46f0 'cable' should be a read-only field 2018-10-29 13:14:41 -04:00
Jeremy Stretch
dfffb04b9c Added 'cable' field to device component serializers 2018-10-29 12:33:43 -04:00
Jeremy Stretch
560fc22950 Remove is_console_server, is_pdu, and is_network_device from DeviceType 2018-10-26 14:48:22 -04:00
Jeremy Stretch
48c5455551 Implemented Cable API endpoint 2018-10-26 12:25:11 -04:00
Jeremy Stretch
796b609dd7 Removed 'is_patch_panel' from DeviceType 2018-10-25 12:44:28 -04:00
Jeremy Stretch
89efd1f1e2 Dropped 'Panel' from FrontPanelPort/RearPanelPort names 2018-10-25 12:11:13 -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
455fcf16eb Merge branch 'develop-2.5' into 20-physical-cabling 2018-10-19 13:34:21 -04:00
Jeremy Stretch
6854819788 Merge branch 'develop' into develop-2.5 2018-10-19 13:34:03 -04:00
Jeremy Stretch
bee7dfe9f3 Fixes #2514: Prevent new connections to already connected interfaces 2018-10-16 16:42:23 -04:00
Jeremy Stretch
26ebed03d0 Merge release v2.4.6 2018-10-10 09:36:51 -04:00
Jeremy Stretch
4fd2cffe31 #2487: Added API tests 2018-10-04 16:20:01 -04:00
Jeremy Stretch
bd72c26a57 Initial work on #20 - patch panels 2018-10-03 14:04:16 -04:00
Jeremy Stretch
66db32fefd Merged release v2.4.5 2018-10-03 11:23:21 -04:00
Jeremy Stretch
c48c3c9292 Closes #2438: API optimizations for tagged objects 2018-09-28 16:44:05 -04:00
John Anderson
0bda0a9334 refactored UI for local config context 2018-09-18 11:52:12 -04:00
John Anderson
7997b70ba1 implemnted #2392 - local config context for devices and VMs 2018-09-16 00:25:20 -04:00
Jeremy Stretch
34dda068c7 Closes #2367: Remove deprecated RPCClient functionality 2018-08-16 12:21:24 -04:00
Jeremy Stretch
68a5dcd47e Removed Python 2 string compatibility 2018-08-14 11:58:42 -04:00
Jeremy Stretch
6c50d24f2c Fixes #2340: API requires manufacturer field when creating/updating an inventory item 2018-08-09 09:34:54 -04:00