Netbox: Custom fields for IP addresses, secrets are not working/storing the data in v2.10.1

Created on 21 Dec 2020  路  2Comments  路  Source: netbox-community/netbox

Environment

  • Python version: 3.6.8
  • NetBox version: 2.10.1

Steps to Reproduce

  1. Create a custom field for IP addresses (I have tested boolean and text fields)
  2. add/edit an IP address and populate the field

Expected Behavior

The custom fields are saved and shown in the Web UI/Django object

Observed Behavior

The custom fields are empty. (The Django objects .cf is also an empty dict)

Further Observations

Custom fields for other objects (e.g. Prefixes) work as intended.

accepted bug

All 2 comments

Getting the same result here as well. From initial testing pre-existing addresses and unmodified fields are working as expected.

Looks like secrets are also affected.

The problem is a missing call to super().clean() on the model forms; an easy fix. Thanks for the report!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hoalex picture hoalex  路  3Comments

robbagithub picture robbagithub  路  3Comments

luto picture luto  路  3Comments

tyler-8 picture tyler-8  路  3Comments

markve-sa picture markve-sa  路  4Comments