Skip to content

GraphQL: expose L2VPN termination in interface #19828

@swoga

Description

@swoga

NetBox version

v4.3.3

Feature type

New functionality

Proposed functionality

It would be convenient if the GraphQL InterfaceType could output the L2VPN temination (similar to the REST API).
therefore my proposal: add l2vpn_termination: L2VPNTerminationType to InterfaceType

Use case

I would like to use GraphQL to retrieve the interfaces of devices, including information about connected L2VPNs, in order to generate configurations for the devices.

e.g.

{
  device_list(filters: {}) {
    name
    interfaces {
      name
      l2vpn_termination: {            <---
        l2vpn {
          name
        }
      }
  }
}

Database changes

none

External dependencies

none

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtopic: GraphQLtype: bugA confirmed report of unexpected behavior in the application

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions