Skip to content

Ingesting Cable using diode-sdk-python #47

@SRF-oberlicy

Description

@SRF-oberlicy

Diode SDK Python version

1.0.0

Diode version

1.0.0

Diode NetBox Plugin version

1.0.1

NetBox version

4.2.3

Steps to reproduce

  • Netbox Diode installed
  • Python Script successfully connecting to diode

Ingesting one or multpile cables in the following format:

cable = Cable(
            a_terminations=[GenericObject(
                object_interface=Interface(
                    name="Interface A",
                    type="virtual",
                    device="Device ABC"
                ))],
            b_terminations=[GenericObject(
                object_interface=Interface(
                    name="Interface B",
                    type="virtual",
                    device="Device ABC"
                ))]
        )

Expected behavior

I expect the cable to be created in netbox just as it works in a similar matter with devices, ip addresses or interfaces.

Observed behavior

Instead, I get an error from diode:
Exception Type: TypeError at /api/plugins/diode/generate-diff/ Exception Value: unhashable type: 'dict' Raised during: netbox_diode_plugin.api.views.GenerateDiffView

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstatus: needs triageThis issue is awaiting triage by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions