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

ValueError on certain slug filters #1670

Closed
jeremystretch opened this issue Oct 31, 2017 · 0 comments
Closed

ValueError on certain slug filters #1670

jeremystretch opened this issue Oct 31, 2017 · 0 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@jeremystretch
Copy link
Member

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'
@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Oct 31, 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

1 participant