Skip to content

Cannot update VRF import and export route targets #5557

@devon-mar

Description

@devon-mar

Environment

  • Python version: 3.9.1
  • NetBox version: 2.10.2

Steps to Reproduce

  1. Try to update import and/or export route targets on a VRF using the API
PATCH /api/ipam/vrfs/1/
{
    "import_targets": [1]
}

Expected Behavior

The route target is associated with the VRF.

Observed Behavior

NetBox returns HTTP 500 with the following

{
    "error": "The `.update()` method does not support writable nested fields by default.\nWrite an explicit `.update()` method for serializer `ipam.api.serializers.VRFSerializer`, or set `read_only=True` on nested serializer fields.",
    "exception": "AssertionError",
    "netbox_version": "2.10.2",
    "python_version": "3.9.1"
}

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