DeviceType filter missing in api2 #825

Closed
opened 2025-12-29 16:26:07 +01:00 by adam · 3 comments
Owner

Originally created by @maximebrun on GitHub (Apr 3, 2017).

It seems device type filtering has been dropped with api2.
For exemple, in adding/editing a device, all device types are display when we select a Manufacturer.

Originally created by @maximebrun on GitHub (Apr 3, 2017). It seems device type filtering has been dropped with api2. For exemple, in adding/editing a device, all device types are display when we select a Manufacturer.
adam added the type: bug label 2025-12-29 16:26:07 +01:00
adam closed this issue 2025-12-29 16:26:07 +01:00
Author
Owner

@maximebrun commented on GitHub (Apr 3, 2017):

I forgot to mention i'm using branch v2-develop

For exemple:

#curl http://10.44.81.5/api/dcim/device-types/?manufacturer_id=5
{
   "next" : null,
   "results" : [
      ...
      {
         "comments" : "",
         "id" : 2,
         "custom_fields" : {
            "serial-conf" : null
         },
         "is_console_server" : false,
         "model" : "DL160Gen9",
         "part_number" : "",
         "instance_count" : 7,
         "is_network_device" : true,
         "is_pdu" : false,
         "u_height" : 1,
         "is_full_depth" : true,
         "manufacturer" : {
            "id" : 4,
            "slug" : "hp",
            "url" : "http://10.44.81.5/api/dcim/manufacturers/4/",
            "name" : "HP"
         },
         "interface_ordering" : {
            "value" : 1,
            "label" : "Slot/position"
         },
         "slug" : "dl160gen9",
         "subdevice_role" : null
      },
      ...
   ],
   "previous" : null,
   "count" : 16
}
@maximebrun commented on GitHub (Apr 3, 2017): I forgot to mention i'm using branch v2-develop For exemple: <pre> #curl http://10.44.81.5/api/dcim/device-types/?manufacturer_id=5 { "next" : null, "results" : [ ... { "comments" : "", "id" : 2, "custom_fields" : { "serial-conf" : null }, "is_console_server" : false, "model" : "DL160Gen9", "part_number" : "", "instance_count" : 7, "is_network_device" : true, "is_pdu" : false, "u_height" : 1, "is_full_depth" : true, "manufacturer" : { "id" : 4, "slug" : "hp", "url" : "http://10.44.81.5/api/dcim/manufacturers/4/", "name" : "HP" }, "interface_ordering" : { "value" : 1, "label" : "Slot/position" }, "slug" : "dl160gen9", "subdevice_role" : null }, ... ], "previous" : null, "count" : 16 }</pre>
Author
Owner

@marc-us commented on GitHub (Apr 3, 2017):

Here is it :-)
8e1a34c853

@marc-us commented on GitHub (Apr 3, 2017): Here is it :-) https://github.com/digitalocean/netbox/pull/1023/commits/8e1a34c853f42158fdb1b8e8409c960514e8f8ea
Author
Owner

@jeremystretch commented on GitHub (Apr 3, 2017):

I can't merge the linked commit as its part of a larger PR, but I'll make the change. Thanks for the report.

@jeremystretch commented on GitHub (Apr 3, 2017): I can't merge the linked commit as its part of a larger PR, but I'll make the change. Thanks for the report.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#825