ValueError on certain slug filters #1368

Closed
opened 2025-12-29 16:31:49 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Oct 31, 2017).

Issue type

[ ] Feature request
[x] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: 2.2.3

Description

Work on #1649 introduced a regression which yields a ValueError for the following slug filters:

  • circuit.tenant
  • region.parent
  • site.region
  • site.tenant
  • rack.group
  • rack.tenant
  • rack.role
  • rackreservation.group
  • device.tenant
  • device.platform
  • vrf.tenant
  • prefix.vrf
  • prefix.tenant
  • preifx.site
  • preifx.role
  • ipaddress.vrf
  • ipaddress.tenant
  • vlangroup.site
  • vlan.site
  • vlan.group
  • vlan.tenant
  • vlan.role
  • tenant.group
  • cluster.group
  • virtualmachine.cluster_group
  • virtualmachine.role
  • virtualmachine.tenant
  • virtualmachine.platform

An example error is:

ValueError at /api/ipam/prefixes/
invalid literal for int() with base 10: 'site1'
Originally created by @jeremystretch on GitHub (Oct 31, 2017). ### Issue type [ ] Feature request <!-- Requesting the implementation of a new feature --> [x] Bug report <!-- Reporting unexpected or erroneous behavior --> [ ] Documentation <!-- Proposing a modification to the documentation --> ### Environment * Python version: 3.5.2 * NetBox version: 2.2.3 ### Description Work on #1649 introduced a regression which yields a ValueError for the following slug filters: * circuit.tenant * region.parent * site.region * site.tenant * rack.group * rack.tenant * rack.role * rackreservation.group * device.tenant * device.platform * vrf.tenant * prefix.vrf * prefix.tenant * preifx.site * preifx.role * ipaddress.vrf * ipaddress.tenant * vlangroup.site * vlan.site * vlan.group * vlan.tenant * vlan.role * tenant.group * cluster.group * virtualmachine.cluster_group * virtualmachine.role * virtualmachine.tenant * virtualmachine.platform An example error is: ``` ValueError at /api/ipam/prefixes/ invalid literal for int() with base 10: 'site1' ```
adam added the type: bug label 2025-12-29 16:31:49 +01:00
adam closed this issue 2025-12-29 16:31:49 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1368