---
name: 🐛 Bug Report
description: Report a reproducible bug in the current release of NetBox
labels: ["type: bug"]
body:
  - type: markdown
    attributes:
      value: >
        **NOTE:** This form is only for reporting _reproducible bugs_ in a current NetBox
        installation. If you're having trouble with installation or just looking for
        assistance with using NetBox, please visit our
        [discussion forum](https://github.com/netbox-community/netbox/discussions) instead.
  - type: input
    attributes:
      label: NetBox version
      description: >
        What version of NetBox are you currently running? (If you don't have access to the most
        recent NetBox release, consider testing on our [demo instance](https://demo.netbox.dev/)
        before opening a bug report to see if your issue has already been addressed.)
      placeholder: v2.11.9
    validations:
      required: true
  - type: dropdown
    attributes:
      label: Python version
      description: What version of Python are you currently running?
      options:
        - 3.7
        - 3.8
        - 3.9
    validations:
      required: true
  - type: textarea
    attributes:
      label: Steps to Reproduce
      description: >
        Describe in detail the exact steps that someone else can take to
        reproduce this bug using the current stable release of NetBox. Begin with the
        creation of any necessary database objects and call out every operation being
        performed explicitly. If reporting a bug in the REST API, be sure to reconstruct
        the raw HTTP request(s) being made: Don't rely on a client library such as
        pynetbox. Additionally, **do not rely on the demo instance** for reproducing
        suspected bugs, as its data is prone to modification or deletion at any time.
      placeholder: |
        1. Click on "create widget"
        2. Set foo to 12 and bar to G
        3. Click the "create" button
    validations:
      required: true
  - type: textarea
    attributes:
      label: Expected Behavior
      description: What did you expect to happen?
      placeholder: A new widget should have been created with the specified attributes
    validations:
      required: true
  - type: textarea
    attributes:
      label: Observed Behavior
      description: What happened instead?
      placeholder: A TypeError exception was raised
    validations:
      required: true
