Skip to content

"Update" for non-uppercase primary_mac_address reported even when not changed #373

@ruffy91

Description

@ruffy91

Diode version

v1.4.0

Deployment type

docker compose

Deployment type version

docker compose

Diode SDK type

diode-sdk-python

Diode SDK version

v1.1.0

Diode NetBox Plugin version

v1.2.0

NetBox version

v4.3.3

Steps to reproduce

When sending a VMMachine containing a VMInterface with a primary_mac_address or a Device containing a Interface with a primary_mac_address then changes will be generated and sent to netbox even when the MAC did not change.

Expected behavior

There is no change reported to netbox

Observed behavior

A change is reported to netbox:

Image

Image

The following update is logged with DEBUG loglevel:

{
"id": "6b628c6e-609f-4e9f-8089-57d72e5ba0ba",
"errors": null,
"change_set": {
"id": "6b628c6e-609f-4e9f-8089-57d72e5ba0ba",
"changes": [
{
"id": "e6744052-eb68-4ecf-83cf-b976a4bd6a96",
"change_type": "update",
"object_type": "dcim.macaddress",
"object_id": 687,
"ref_id": null,
"object_primary_value": "9c:1d:36:fc:96:2f",
"before": {
"assigned_object_id": 27,
"assigned_object_type": "dcim.interface",
"id": 687,
"mac_address": "9C:1D:36:FC:96:2F"
},
"data": {
"assigned_object_id": 27,
"assigned_object_type": "dcim.interface",
"id": 687,
"mac_address": "9c:1d:36:fc:96:2f"
},
"new_refs": []
}
],
"branch": null
}
}

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