Commit Graph

221 Commits

Author SHA1 Message Date
Jeremy Stretch
33fc665301 Fixes #1371: Extend DeviceSerializer.parent_device to include standard fields 2017-07-25 10:56:23 -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
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
3e343a02e8 Fixes #1043: Corrected queryset in WritableDeviceSerializer validation 2017-04-05 13:38:23 -04:00
Jeremy Stretch
be56d01a1d Renamed Module to InventoryItem (prep for #824) 2017-03-21 12:54:08 -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
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
79c8be97e4 Moved custom field serializers to their own module to avoid circular dependency 2017-03-08 16:18:41 -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
f0b140818a Re-implemented interface/connection serializers 2017-01-30 15:35:01 -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
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
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
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
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
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
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
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
f52b880d98 Extended DeviceTypeSerializer to include component templates 2016-03-08 22:48:14 -05:00
Jeremy Stretch
27b289ee3b Initial push to public repo 2016-03-01 11:23:03 -05:00