Skip to content

GraphQL query does not show mac addresses on interface #18799

@rejoice-full

Description

@rejoice-full

Deployment Type

Self-hosted

NetBox Version

v4.2.3

Python Version

3.11

Steps to Reproduce

Using GraphQL query:

query getHWInterfaces {
  resp: interface_list {
    id
    name
    enabled
    description
    mac_addresses {
      mac_address
    }
    type
    custom_fields
    device {
      id
      name
    }
  }
}

The 'resp' list with interfaces contains items like

{
        "id": "7133",
        "name": "IPMI",
        "enabled": true,
        "description": "",
        "mac_addresses": [],
        "type": "1000base-t",
        "custom_fields": {},
        "device": {
          "id": "1542",
          "name": "1J00NN2"
        }
      }

'mac_addresses' are always an empty list, although they actually exist and can be seen through web-interface or REST API query.

Expected Behavior

'mac_addresses' list is populated with mac addresses which are assigned to corresponding interfaces.

Observed Behavior

'mac_addresses' list is always empty

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: revisions neededThis issue requires additional information to be actionabletype: bugA confirmed report of unexpected behavior in the application

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions