Skip to content

Circuit termination API error: Cannot assign "<Provider: IGN>": "CircuitTermination.provider_network" must be a "ProviderNetwork" instance. #6357

@ghost

Description

NetBox version

2.12.2

Python version

3.8

Steps to Reproduce

Via API only POST to /circuits/circuit-terminations/ when using a ProviderNetwork, example:

{
  "circuit": 2,
  "term_side": "Z",
  "provider_network": 1
}

Expected Behavior

HTTP response 201 and the new termination created

Observed Behavior

HTTP response 500

{
    "error": "Cannot assign \"<Provider: IGN>\": \"CircuitTermination.provider_network\" must be a \"ProviderNetwork\" instance.",
    "exception": "ValueError",
    "netbox_version": "2.11.2",
    "python_version": "3.8.8"
}

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