-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
status: revisions neededThis issue requires additional information to be actionableThis issue requires additional information to be actionabletype: bug
Description
Plugin Version
0.3.1
NetBox Version
v4.4.0-Docker-3.4.0
Python Version
3.12
Steps to Reproduce
No other plugins are installed. No pending migrations.
Created a custom object type called "vrf" with the following fields
- cidr: multiple objects of IPAM -> Prefix
- name: text
Created a custom object from the vrf above
- name: "whatever"
- prefix: I chose 4 random prefixes
The result of clicking add is the traceback below. I get the same result when attempting to view the list of vrf custom objects.
<h1>ValueError
at /plugins/custom-objects/vrf/add/</h1>
<pre class="exception_value">Cannot assign "<PrefixQuerySet [<Prefix: 100.87.19.32/27>, <Prefix: 100.87.32.0/21>, <Prefix: 100.87.42.0/23>, <Prefix: 100.87.120.0/23>]>": "Table8Model.cidr" must be a "Prefix" instance.</pre>
Request Method: | POST
-- | --
https://redated/plugins/custom-objects/vrf/add/
5.2.5
ValueError
Cannot assign "<PrefixQuerySet [<Prefix: 100.87.19.32/27>, <Prefix: 100.87.32.0/21>, <Prefix: 100.87.42.0/23>, <Prefix: 100.87.120.0/23>]>": "Table8Model.cidr" must be a "Prefix" instance.
/opt/netbox/venv/lib/python3.12/site-packages/django/db/models/fields/related_descriptors.py, line 291, in __set__
netbox_custom_objects.views.CustomObjectEditView
/opt/netbox/venv/bin/python
3.12.3
['/opt/netbox/netbox/', '/usr/lib/python312.zip', '/usr/lib/python3.12', '/usr/lib/python3.12/lib-dynload', '/opt/netbox/venv/lib/python3.12/site-packages']
Mon, 08 Sep 2025 18:38:45 +0000
Expected Behavior
A custom object is viewable when multiple prefixes are linked to it.
Observed Behavior
A ValueError exception was raised
Metadata
Metadata
Assignees
Labels
status: revisions neededThis issue requires additional information to be actionableThis issue requires additional information to be actionabletype: bug