Cant save "Interface Assignment", "NAT IP (Inside)" fields of ip address #5178

Closed
opened 2025-12-29 19:25:07 +01:00 by adam · 4 comments
Owner

Originally created by @encorer on GitHub (Aug 12, 2021).

NetBox version

v2.11.10

Python version

3.8

Steps to Reproduce

  1. Create cluster type in Virtualization -> Cluster Types
  2. Create cluster in Virtualization -> Clusters
  3. Create virtual machine in Virtualization -> Virtual Machines
  4. Create any ip address (e.g. 192.168.0.150/32) in IPAM -> IP Addresses, set in this page below, Interface Assignment -> Virtual Machine, my previously created Virtual Machine, click Create

Expected Behavior

all filled fields must be saved

Observed Behavior

The ip address is saved, but the assigned virtual machine is not. Same thing with "NAT IP (Inside)" fields of ip address page.

In debug mode see this error:

Exception while resolving variable 'disabled' in template 'django/forms/widgets/select.html'.
Traceback (most recent call last):
File "/opt/netbox-2.11.10/venv/lib/python3.8/site-packages/django/template/base.py", line 829, in _resolve_lookup
current = current[bit]
TypeError: string indices must be integers

Originally created by @encorer on GitHub (Aug 12, 2021). ### NetBox version v2.11.10 ### Python version 3.8 ### Steps to Reproduce 1. Create cluster type in Virtualization -> Cluster Types 2. Create cluster in Virtualization -> Clusters 3. Create virtual machine in Virtualization -> Virtual Machines 4. Create any ip address (e.g. 192.168.0.150/32) in IPAM -> IP Addresses, set in this page below, Interface Assignment -> Virtual Machine, my previously created Virtual Machine, click Create ### Expected Behavior all filled fields must be saved ### Observed Behavior The ip address is saved, but the assigned virtual machine is not. Same thing with "NAT IP (Inside)" fields of ip address page. In debug mode see this error: Exception while resolving variable 'disabled' in template 'django/forms/widgets/select.html'. Traceback (most recent call last): File "/opt/netbox-2.11.10/venv/lib/python3.8/site-packages/django/template/base.py", line 829, in _resolve_lookup current = current[bit] TypeError: string indices must be integers
adam added the type: bug label 2025-12-29 19:25:07 +01:00
adam closed this issue 2025-12-29 19:25:08 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 12, 2021):

I'm not able to reproduce this on v2.11.10, either locally or using the public demo instance. Can you take a look through your steps to reproduce again?

@jeremystretch commented on GitHub (Aug 12, 2021): I'm not able to reproduce this on v2.11.10, either locally or using the public demo instance. Can you take a look through your steps to reproduce again?
Author
Owner

@encorer commented on GitHub (Aug 12, 2021):

I understood. If you do not set the interface, then it does not save the virtual machine, but this item seems to be optional.

@encorer commented on GitHub (Aug 12, 2021): I understood. If you do not set the interface, then it does not save the virtual machine, but this item seems to be optional.
Author
Owner

@encorer commented on GitHub (Aug 12, 2021):

I have another question, can you assign a virtual machine to the site? Can't find a way to do this.

@encorer commented on GitHub (Aug 12, 2021): I have another question, can you assign a virtual machine to the site? Can't find a way to do this.
Author
Owner

@jeremystretch commented on GitHub (Aug 12, 2021):

If you do not set the interface, then it does not save the virtual machine, but this item seems to be optional.

Correct: You must select a specific interface to which the IP address is being assigned.

I have another question, can you assign a virtual machine to the site? Can't find a way to do this.

No; virtual machines must be assigned to clusters, and clusters can be assigned to sites.

Since this does not appear to be a valid bug report, I'm going to close it. For any other questions, please feel free to start a new discussion.

@jeremystretch commented on GitHub (Aug 12, 2021): > If you do not set the interface, then it does not save the virtual machine, but this item seems to be optional. Correct: You must select a specific interface to which the IP address is being assigned. > I have another question, can you assign a virtual machine to the site? Can't find a way to do this. No; virtual machines must be assigned to clusters, and clusters can be assigned to sites. Since this does not appear to be a valid bug report, I'm going to close it. For any other questions, please feel free to start a new [discussion](https://github.com/netbox-community/netbox/discussions/new).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5178