Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeviceType filter missing in api2 #1025

Closed
maximebrun opened this issue Apr 3, 2017 · 3 comments
Closed

DeviceType filter missing in api2 #1025

maximebrun opened this issue Apr 3, 2017 · 3 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@maximebrun
Copy link

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.

@maximebrun
Copy link
Author

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
}

marc-us added a commit to marc-us/netbox2 that referenced this issue Apr 3, 2017
@marc-us
Copy link
Contributor

marc-us commented Apr 3, 2017

Here is it :-)
8e1a34c

@jeremystretch
Copy link
Member

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 jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Apr 3, 2017
@jeremystretch jeremystretch changed the title bug: DeviceType filtering in api2 DeviceType filter missing in api2 Apr 3, 2017
lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants