Commit Graph

627 Commits

Author SHA1 Message Date
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
Jeremy Stretch
7585d63865 Fixes #2335: API requires group field when creating/updating a rack 2018-08-08 14:58:16 -04:00
Jeremy Stretch
813cd6bebd Fixes #2321: Allow explicitly setting a null value on nullable ChoiceFields 2018-08-07 14:05:07 -04:00
Jeremy Stretch
a7beee7fe5 Fixes #2310: False validation error on certain nested serializers 2018-08-06 17:40:45 -04:00
Jeremy Stretch
e6e5b92e00 Adopt django-taggit-serializer for representation of assigned tags in the API 2018-08-03 09:43:03 -04:00
Jeremy Stretch
7809eb42d9 Renamed ChoiceFieldSerializer and ContentTypeFieldSerializer 2018-07-30 12:41:20 -04:00
Jeremy Stretch
bcf014b45d Merge branch 'develop' into develop-2.4 2018-07-18 17:51:57 -04:00
Jeremy Stretch
a26dfc73d1 Fixes #1992: Isolate errors when one of multiple NAPALM methods fails 2018-07-18 14:46:15 -04:00
Jeremy Stretch
1bf1eee538 Enabled tags for device components and virtual chassis 2018-07-10 15:36:28 -04:00
Jeremy Stretch
0978505058 Remove separate config-context API endpoints; include rendered config context when retrieving a single device/VM 2018-07-03 12:29:20 -04:00
Jeremy Stretch
4d92ffd153 Merge branch 'develop' into develop-2.4 2018-07-02 17:01:14 -04:00
Jeremy Stretch
6fe28e5047 Fixes #2191: Added missing static choices to circuits and DCIM API endpoints 2018-06-29 13:17:07 -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
aeb91ea6e7 Closes #2029: Added optional NAPALM arguments to Platform model 2018-06-29 11:21:00 -04:00
Jeremy Stretch
2b56131412 Initial work on config contexts 2018-06-27 16:02:34 -04:00
Jeremy Stretch
88cde1da28 Closes #2118: Added latitude and longitude fields to Site 2018-06-21 14:55:10 -04:00
zmoody
6a906ad987 Fixes #2143 - PUTs to Site Endpoint Requires Value for time_zone
Allow null values for `time_zone` field in the writeable serializer for the sites endpoint.
2018-06-05 10:26:33 -05:00
Jeremy Stretch
d318247364 Closes #2131: Added created and last_updated fields to DeviceType 2018-05-30 13:41:14 -04:00
Jeremy Stretch
fe9ae933e2 Closes #238: Allow racks with the same name within a site (but in different groups) 2018-05-22 15:45:30 -04:00
Jeremy Stretch
3cc5eca577 Closes #2034: Include the ID when showing nested interface connections 2018-05-22 14:41:11 -04:00
Jeremy Stretch
d9baff4d5c Fixes #2075: Enable tenant assignment when creating a rack reservation via the API 2018-05-22 14:09:06 -04:00
Jeremy Stretch
1510e5d229 Initial work on implementing django-taggit for #132 2018-05-08 16:28:26 -04:00
Jeremy Stretch
df6aefbba5 Introduced SerializedPKRelatedField to represent serialized ManyToManyFields 2018-04-06 12:42:25 -04:00
Jeremy Stretch
b937c3b9a4 Removed nested serializers for ManyToMany relationships temporarily 2018-04-05 16:26:29 -04:00
Jeremy Stretch
7a7bb63e91 Finished merging writable serializers 2018-04-05 14:12:43 -04:00
Jeremy Stretch
9a8f1c6672 Started merging writable serializers (WIP) 2018-04-04 17:01:24 -04:00
Dave Cameron
0c1bcfd3ce Definition for /dcim/connected-device/ endpoint 2018-03-16 16:48:08 -04:00
John Anderson
52215db083 Merge branch 'develop' into bug/1921 2018-03-01 12:11:46 -05:00
Jeremy Stretch
b9359b9965 Fixes #1935: Correct API validation of VLANs assigned to interfaces 2018-03-01 12:05:25 -05:00
John Anderson
27ec586ef6 refactor to handle M2M validation in ValidatedModelSerializer 2018-03-01 11:31:56 -05:00
John Anderson
381fc22321 fixed #1921 - create interfaces with 801.1q in api 2018-02-27 16:19:28 -05:00
Jeremy Stretch
a61094e6c4 Cleaned up API for virtual chassis 2018-02-01 13:02:34 -05:00
Jeremy Stretch
f530fdce74 Collapsed VCMembership into the Device model (WIP) 2018-01-31 22:47:27 -05:00
Jeremy Stretch
701ddc3b04 Removed support for NAPALM 1.x 2018-01-25 14:35:19 -05:00
Jeremy Stretch
24aa8103f7 Closes #1821: Added 'description' field to Site model 2018-01-25 13:29:09 -05:00
Jeremy Stretch
19cb08634a Closes #1758: Added 'status' field to Site model 2018-01-25 13:07:04 -05:00
Jeremy Stretch
8d41447911 Renamed device status constants for clarity 2018-01-25 12:20:24 -05:00
Jeremy Stretch
9119823ef9 Completed virtual chassis API serializers 2018-01-19 13:34:37 -05:00
Jeremy Stretch
8ae884e164 Merge branch 'develop' into develop-2.3 2018-01-19 10:54:26 -05:00
Jeremy Stretch
89addf8962 Fixes #1818: InventoryItem API serializer no longer requires specifying a null value for items with no parent 2018-01-19 10:30:26 -05:00
Jeremy Stretch
6613aaebd1 Fix bulk creation of VCMemberships via API 2018-01-02 16:40:52 -05:00
Jeremy Stretch
ce12e30903 Closes #1321: Added created and last_updated fields for relevant models to their API serializers 2017-12-21 10:49:40 -05:00
Jeremy Stretch
189e1771d6 Closes #1283: Added a time zone field to the site model 2017-12-19 17:24:14 -05:00
Jeremy Stretch
3e355830fe Closes #1744: Allow associating a platform with a specific manufacturer 2017-12-19 16:15:26 -05:00
Jeremy Stretch
a31e0c82d8 PEP8 fixes 2017-12-18 16:52:49 -05:00
Jeremy Stretch
06c3499ec8 Moved VC master designation to membership model 2017-11-27 15:59:13 -05:00
Jeremy Stretch
bfcba663f0 Initial work on virtual chassis support 2017-11-17 16:47:26 -05:00
Jeremy Stretch
5b02b48ea6 Added nested representations of user and tenant to the rack reservation serializer 2017-11-15 14:15:44 -05:00
Nicholas Totsch
206beb9251 Add Tenancy to Rack Reservations; Fixes #1592 (#1672)
* fixed prefix header to represent new serial "vlan_vid"

* shows option in creation now

* fixed visibility on rack page

* cleanup

* Added view to Tenant page

* Moved migration for update from #1666 and fixed tenant enumeration in FilterForm

* Fixed conflict #1

* Fixed filters from merge and made migration merge

* added tenant to api

* Fixed migrations problem

* Added Tenant to bulkedit option
2017-11-15 13:54:49 -05:00
Jeremy Stretch
e2d8aa9de8 Fixed up validation of Interface VLAN assignments 2017-11-14 16:15:23 -05:00
Jeremy Stretch
af68ea5dfd Merge branch '150-interface-vlans' into develop-2.3 2017-11-14 15:36:14 -05:00
Jeremy Stretch
0515adad19 Merge branch 'develop' into develop-2.3 2017-11-14 14:38:32 -05:00
Jeremy Stretch
0eeb4d6852 Fixes #1696: Fix for NAPALM v2.0+ 2017-11-08 09:51:37 -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
6ec60222aa Closes #1666: Allow modifying the owner of a rack reservation 2017-10-31 13:52: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
b906030801 #1444: Added a serial number field to the rack model 2017-10-09 15:01:57 -04:00
Jeremy Stretch
aab0456432 #1493: Extended DeviceRole to include a toggle indicating applicability to virtual machines 2017-09-29 12:11:20 -04:00
Jeremy Stretch
4fa4225634 Fixes #1540: Added missing 'cluster' field to WritableDeviceSerializer 2017-09-26 15:45:14 -04:00
Jeremy Stretch
86c642f54d Reworked relationship between devices and clusters 2017-08-16 17:21:34 -04:00
Jeremy Stretch
6c66a1f72f Fixes #1421: Improved model validation logic for API serializers 2017-08-15 13:54:04 -04:00
Jeremy Stretch
6815386708 Fixes #1385: Connected device API endpoint no longer requires authentication if LOGIN_REQUIRED=False 2017-08-02 11:17:57 -04:00
Jeremy Stretch
3aeeb9fe09 Closes #1374: Added NAPALM_ARGS and NAPALM_TIMEOUT configiuration parameters 2017-07-26 11:47:59 -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
Jeremy Stretch
33fc665301 Fixes #1371: Extend DeviceSerializer.parent_device to include standard fields 2017-07-25 10:56:23 -04:00
Jeremy Stretch
1f9ea53d9a Removed legacy LLDP neighbors API endpoint 2017-07-17 13:21:38 -04:00
Jeremy Stretch
c2d06287ac Live device status PoC 2017-07-14 16:07:28 -04:00
Jeremy Stretch
421119dfe2 Initial work on NAPALM integration 2017-07-14 14:42:56 -04:00
Jeremy Stretch
a6a9ea9bcb Closes #1269: Added circuit termination to interface serializer 2017-07-10 12:07:47 -04:00
Jeremy Stretch
f33577221e #1269: Reworked interface connection serialization 2017-07-10 11:52:36 -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
dfca1a0a50 Closes #1121: Added asset_tag and description fields to inventory items 2017-06-23 17:05:37 -04:00
Jeremy Stretch
ea468d22d7 Closes #1041: Added enabled and MTU fields to the interface model 2017-06-23 14:04:15 -04:00
Jeremy Stretch
57bad0a7cb Closes #1203: Implemented query filters for all models 2017-06-19 16:10:18 -04:00
Jeremy Stretch
297d9c6bb9 Import unicode_literals 2017-05-24 11:33:11 -04:00
Jeremy Stretch
f8933048d6 Fixes #1207: Include nested LAG serializer when showing interface connections (API) 2017-05-19 12:59:27 -04:00
Jeremy Stretch
d8de5bb036 Fixes #1188: Serialize interface LAG as nested objected (API) 2017-05-17 14:32:39 -04:00
Jeremy Stretch
00f6aaca45 Fixes #1178: Fix API representation of connected interface's form factor 2017-05-15 11:03:11 -04:00
Jeremy Stretch
f739eca0f6 Converted all necessary serializers to CustomFieldModelSerializers 2017-04-27 12:50:43 -04:00
Jeremy Stretch
a4028a7126 Got rudimentary custom field creates/updates working 2017-04-25 13:00:28 -04:00
Jeremy Stretch
50b4b5f2dc Fixes #1059: Allow filtering of interface connections via API 2017-04-10 16:15:36 -04:00
Jeremy Stretch
e46675aa22 Rearranged URL namespaces to satisfy deprecation warnings 2017-04-05 14:26:33 -04:00
Jeremy Stretch
3e343a02e8 Fixes #1043: Corrected queryset in WritableDeviceSerializer validation 2017-04-05 13:38:23 -04:00
Jeremy Stretch
a362e2da7c Added API endpoints for console and power connections 2017-04-05 11:29:12 -04:00
Jeremy Stretch
042076c032 Fixes #1025: Applied missing API view filters 2017-04-03 11:04:17 -04:00
Jeremy Stretch
be56d01a1d Renamed Module to InventoryItem (prep for #824) 2017-03-21 12:54:08 -04:00
Jeremy Stretch
ea9ed11c3b Custom name for ConnectedDeviceViewSet 2017-03-20 21:54:01 -04:00
Jeremy Stretch
8c15daf697 Fixed browsable API breadcrumbs 2017-03-20 21:50:10 -04:00
Jeremy Stretch
354b3b0011 Added test case for ConnectedDeviceViewSet 2017-03-20 21:39:40 -04:00
Jeremy Stretch
2be7d030c2 Renamed rack-units API and added a test 2017-03-20 21:18:37 -04:00
Jeremy Stretch
73be1297a5 Removed custom renderers 2017-03-20 17:47:18 -04:00
Jeremy Stretch
15ecd734c6 Added API endpoint, tests for Graphs 2017-03-20 15:14:33 -04:00
Jeremy Stretch
472008a673 Updated RackViewSet() to be compatible with paginated API 2017-03-20 10:38:09 -04:00
Jeremy Stretch
c072bedd02 Restore not-so-extraneous 'id' field to all WritableSerializers 2017-03-17 17:32:43 -04:00
Jeremy Stretch
a0f931891b Removed extraneous 'id' field from all WritableSerializers 2017-03-17 16:20:34 -04:00
Jeremy Stretch
d93a379c15 Assign RackReservation user from request context 2017-03-17 14:45:14 -04:00
Jeremy Stretch
1f294b9479 Removed unneeded services endpoint from DCIM API 2017-03-17 12:23:23 -04:00
Jeremy Stretch
05c37ea90e Finished DCIM API model tests 2017-03-17 12:16:24 -04:00
Jeremy Stretch
708cc043c3 Fixed bug interpreting facility_id as a required field 2017-03-16 17:25:34 -04:00
Jeremy Stretch
b63ed3d1dc First batch of DCIM API tests 2017-03-16 16:50:18 -04:00
Jeremy Stretch
78f0d583b0 Standardized API URL definitions 2017-03-09 13:24:02 -05:00
Jeremy Stretch
1ba65cb311 Replaced RelatedConnectionsView with views.ConnectedDeviceViewSet 2017-03-09 12:18:53 -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
acaf558b42 Corrected region serializers 2017-02-28 16:23:39 -05:00
Jeremy Stretch
691ea87444 Merged develop 2017-02-28 16:10:53 -05:00
Jeremy Stretch
eddb8a2fbc Merge branch 'develop' into api2
Conflicts:
	netbox/dcim/api/serializers.py
	netbox/dcim/api/views.py
	netbox/dcim/filters.py
2017-02-27 17:04:08 -05:00
Jeremy Stretch
9847b5187f Closes #105: Interface groups (#919)
* Initial work on interface groups

* Simplify to a single LAG form factor

* Correct interface serializer

* Allow for bulk editing of interface LAG

* Additional LAG interface validation

* Fixed API tests
2017-02-27 16:52:13 -05:00
Jeremy Stretch
e82e39745b Merge branch 'develop' into api2
Conflicts:
	netbox/dcim/api/serializers.py
2017-02-17 15:12:53 -05:00
Jeremy Stretch
91be4a4df3 Closes #198: Support for rackless devices (#902)
* Initial work to support rackless devices

* Updated device component connection forms

* Updated IP address assignment form

* Updated circuit termination form

* Formatting cleanup

* Fixed tests
2017-02-17 14:48:00 -05:00
Jeremy Stretch
1c8642e1e2 Tweaked ChoiceFieldSerializer to display a field as (value, label) 2017-02-16 14:37:21 -05:00
Jeremy Stretch
b9d5d9ee8c Merge branch 'develop' into api2
Conflicts:
	netbox/dcim/api/serializers.py
	netbox/dcim/api/urls.py
	netbox/dcim/api/views.py
	netbox/dcim/filters.py
2017-02-16 14:28:06 -05:00
Jeremy Stretch
cc79b8ea3d Rack reservations (#900)
* Initial work on rack reservations

* Added views for rack reservations

* Implemented ArrayFieldSelectMultiple form widget

* Implemented API endpoints for rack reservations

* Tweaked the database migration
2017-02-16 13:46:58 -05:00
Jeremy Stretch
3a9d874d5c Re-implemented CustomFieldSerializer (read-only for now) 2017-02-09 16:55:54 -05:00
Jeremy Stretch
88f262cd7c Introduced ChoiceFieldSerializer for choice fields 2017-02-09 15:50:25 -05:00
Jeremy Stretch
5906b8157e Added API endpoints for device type components 2017-02-03 17:18:47 -05:00
Jeremy Stretch
4a78b461fd Removed all device-specific API endpoints 2017-02-01 14:34:19 -05:00
Jeremy Stretch
f8b35f0395 Implemented static writable ModelSerializers for all models 2017-01-31 15:35:09 -05:00
Jeremy Stretch
96182d9f3d Enabled creation of device components 2017-01-31 12:19:41 -05:00
Jeremy Stretch
e41dc74521 Namespaced all API URLs 2017-01-31 10:40:53 -05:00
Jeremy Stretch
b9653cdd12 Moved rack units and device LLDP neighbors views into model viewsets 2017-01-30 17:24:04 -05:00
Jeremy Stretch
06710906c4 Moved graph views into model viewsets 2017-01-30 17:00:58 -05:00
Jeremy Stretch
a802dd0177 Converted device component views to a router 2017-01-30 16:15:12 -05:00
Jeremy Stretch
f0b140818a Re-implemented interface/connection serializers 2017-01-30 15:35:01 -05:00
Jeremy Stretch
b1c5a9916b Added Service serializers 2017-01-27 16:19:38 -05:00
Jeremy Stretch
b6181842b2 Introduced WritableSerializerMixin 2017-01-27 14:36:13 -05:00
Jeremy Stretch
ba78981697 Converted nested serializers to HyperlinkedModelSerializer 2017-01-27 12:22:29 -05:00
Jeremy Stretch
ffdf23341b Cleaned up device component nested serializers 2017-01-26 22:37:17 -05:00
Jeremy Stretch
dd44611cb9 Standardized implementation of nested ViewSets 2017-01-26 17:58:36 -05:00
Jeremy Stretch
ff32286005 Converted static URL definitions to routers 2017-01-26 15:34:07 -05:00
Jeremy Stretch
541f736d42 Merge branch 'develop' into api2 2017-01-25 16:26:45 -05:00
Jeremy Stretch
45532211fb Fixes #844: Apply order_naturally() to API interfaces list 2017-01-25 14:34:34 -05:00
Jeremy Stretch
4d72ee291b Initial work on API v2.0 2017-01-24 17:12:16 -05:00
Jeremy Stretch
049c142a1c Closes #782: Allow filtering devices list by manufacturer 2017-01-24 10:53:59 -05:00
Jeremy Stretch
7433d0e856 Closes #284: Added interface_ordering field to DeviceType 2017-01-06 12:59:49 -05:00
Jeremy Stretch
646abd8d5b Fixes #772: Fix TypeError in API RackUnitListView when no device is excluded 2017-01-04 10:58:11 -05:00
Jeremy Stretch
983cf2ab05 Closes #756: Added contact details to site model 2016-12-29 11:37:40 -05:00
Jeremy Stretch
736c85e4d6 Improved device interface list performance 2016-12-27 13:21:19 -05:00
Jeremy Stretch
d73ff19d71 Fixes #563: Allow a device to be flipped from one rack face to the other 2016-12-21 11:06:42 -05:00
Jeremy Stretch
eb08425465 Closes #122: Add comments field to device types 2016-12-16 11:14:44 -05:00
Jeremy Stretch
6c25c66bd1 Closes #722: Enabled custom fields for device types 2016-12-16 10:54:45 -05:00
Jeremy Stretch
a958eed49b Closes #49: Introduction of circuit terminations 2016-12-14 13:47:22 -05:00
Jeremy Stretch
c727fa82b0 Closes #191: Support for racks numbered top-to-bottom 2016-10-28 11:30:40 -04:00
Jeremy Stretch
5f68c28cf8 Added subdevice_role to DeviceTypeSerializer 2016-09-27 16:04:14 -04:00
Jeremy Stretch
ac5eec18d0 Fixed API tests 2016-08-22 17:15:20 -04:00
Jeremy Stretch
be4dde81e1 Optimized API performance 2016-08-22 15:16:49 -04:00
Jeremy Stretch
238bf0a1bb Extended API to include custom fields 2016-08-22 13:20:30 -04:00
Jeremy Stretch
510e8a40c3 Closes #421: Added asset_tag field to devices 2016-08-11 11:58:21 -04:00
Jeremy Stretch
2b57aed27b Closes #241: Introduced rack roles 2016-08-10 11:52:27 -04:00
Jeremy Stretch
0c329189e3 Extended DCIM API to include a device modules list 2016-08-10 10:44:37 -04:00
Jeremy Stretch
d722327566 #180: Added type and width fields to Rack model 2016-08-08 18:01:15 -04:00
Jeremy Stretch
5df04df240 Miscellaneous API query optimizations 2016-07-27 14:40:19 -04:00
Jeremy Stretch
05b425eaf2 Tenancy-related API cleanup 2016-07-27 13:42:17 -04:00
Jeremy Stretch
b7648b7a58 Applied tenancy to sites, racks, and devices 2016-07-26 16:46:22 -04:00
Jeremy Stretch
879daab9cc Closes #292: Added part_number field to DeviceType 2016-07-26 11:28:45 -04:00
Jeremy Stretch
099266433b Fixes #359: Use standard serializers for related objects 2016-07-21 14:48:02 -04:00
Joel
4fef850c80 Add an api endpoint for listing all connections 2016-07-19 09:08:14 -07:00
Joel
16fbd258c5 Update the valid urls, to expose the new api connection listing endpoint. Naming convention updated for both interface connections to match the rest. 2016-07-19 09:08:14 -07:00
Jeremy Stretch
b5393ea3b3 Corrected RackGroupNestedSerializer() definition 2016-07-15 15:34:28 -04:00
Jeremy Stretch
4f2374f04d Initial work on #93: Primary IPv4/IPv6 support 2016-07-11 16:24:46 -04:00
Nick Peelman
45ed851277 Tests pass now 2016-07-06 13:21:40 -04:00
Jeremy Stretch
e6ef53f138 Added parent_device to DeviceSerializer 2016-07-05 15:32:16 -04:00
Jeremy Stretch
22a85d09d2 Extended API to include DeviceBays 2016-07-05 13:43:19 -04:00
Jeremy Stretch
2866232b8b Added display_name to DeviceNestedSerializer 2016-06-21 15:15:17 -04:00
Jeremy Stretch
658a0acfa9 Moved 'display_name' from serializer to model 2016-06-21 15:06:26 -04:00
Jeremy Stretch
72f62f949d Removed DeviceType component templates from the list view 2016-06-21 15:01:21 -04:00
Jeremy Stretch
741f93999b PEP8 clenaup 2016-06-16 15:02:01 -04:00
Jeremy Stretch
d6cd3428f6 Removed Device.ro_snmp 2016-05-19 11:34:38 -04:00
Jeremy Stretch
112e2ccde7 Code cleanup 2016-05-18 16:02:53 -04:00
Jeremy Stretch
29fd04026d Introduced TopologyMap 2016-04-08 14:57:54 -04:00
Jeremy Stretch
42e16db8b4 Initial work on a dynamic topology mapper 2016-04-08 11:48:24 -04:00
Zach Moody
10d28f2fe2 Merge pull request #6 from digitalocean/flat-renderer
dcim: added json flat renderer.
2016-03-09 11:51:12 -06:00
Jeremy Stretch
f52b880d98 Extended DeviceTypeSerializer to include component templates 2016-03-08 22:48:14 -05:00
Jeremy Stretch
0acf56d773 Corrected DeviceTypeDetailView 2016-03-08 22:07:47 -05:00
Zach Moody
8f5543fe88 dcim: added json flat renderer. 2016-03-08 11:58:20 -06:00
Zach Moody
be0cc660e8 dcim: reorganized api tests under parent folder's tests. 2016-03-06 20:51:14 -06:00
Jeremy Stretch
27b289ee3b Initial push to public repo 2016-03-01 11:23:03 -05:00