Skip to content

null value in column "rf_role" violates not-null constraint #8932

@ecoutinho

Description

@ecoutinho

NetBox version

v3.1.9

Python version

3.8

Steps to Reproduce

After updating netbox-netprod-importer and netboxapi to latest git versions, to make use of OPTIONS, while importing a switch, it fails on "PUT /api/dcim/interfaces/416/" with the following error:

ERROR: netbox_importer: Error when polling device switch1: Interface Ethernet1/1 could not be created: 500 Server Error: Internal Server Error for url: https://netbox/api/dcim/interfaces/416/ -- {'error': 'null value in column "rf_role" violates not-null constraint\nDETAIL: Failing row contains (416, Ethernet1/1, 1000base-t, f, Uplink, 38, 00:c8:8b:35:d3:08, null, t, 1500, access, 13, null, 0001999999999999Ethernet000001............, 1, null, null, null, 2021-04-16, {}, 2022-03-21 18:25:52.690757+00, f, null, null, null, null, , null, null, null, null).\n', 'exception': 'IntegrityError', 'netbox_version': '3.1.9', 'python_version': '3.8.8'}

At the server, it is logged:

Internal Server Error: /api/dcim/interfaces/416/

Expected Behavior

This is not a wifi port, so rf_role should be null.

Observed Behavior

Internal Server Error

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