Skip to content

Validation error when multiple links to the same COT #237

@arthanson

Description

@arthanson

Plugin Version

v0.3.1

NetBox Version

v4.4.1

Python Version

3.11

Steps to Reproduce

  1. Create the following custom object types and fields:

cot1:
f1: text
cot2
f1: text
f2: object -> cot1
f3: object -> cot1
f4: multiobject -> cot1
cot3
f1: text
f2: object -> cot2

Expected Behavior

cot3 f2 should allow to be created as it isn't a circular reference

Observed Behavior

A validation error is thrown saying you can't have circular reference whey trying to add f2 to cot3. This is because the validation code is detecting two cot1 links in cot2 and counting that as a circular reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: needs ownertype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions