Skip to content

Replication fields broken in custom validation #11032

@bluikko

Description

@bluikko

NetBox version

v3.3.8

Python version

3.9

Steps to Reproduce

After updating NetBox 3.2.x to 3.3.8 the custom validation logic that used to work is now broken.

  1. Create a custom validator that tries to validate a replication field, for example for VMInterface model try to validate field name.
  2. Try to add a new interface to a VM.

Expected Behavior

The custom validator should have access to name field.

Observed Behavior

The name field is always empty when creating a new object and the custom validation logic fails.

As per #11031 this is apparently due to "replication fields (think interface name expansion) was refactored in that PR and seems to have caused the name field to be blank at the time of validation", possibly due to #10312.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions