GraphQL: expose L2VPN termination in interface #11350

Closed
opened 2025-12-29 21:44:03 +01:00 by adam · 2 comments
Owner

Originally created by @swoga on GitHub (Jul 8, 2025).

Originally assigned to: @swoga on GitHub.

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

Originally created by @swoga on GitHub (Jul 8, 2025). Originally assigned to: @swoga on GitHub. ### 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
adam added the type: bugstatus: acceptedtopic: GraphQLseverity: low labels 2025-12-29 21:44:03 +01:00
adam closed this issue 2025-12-29 21:44:03 +01:00
Author
Owner

@swoga commented on GitHub (Jul 11, 2025):

I am happy to contribute a fix, it seems to be quite easy to implement.
Please let me know if you would like me to submit a PR.

@swoga commented on GitHub (Jul 11, 2025): I am happy to contribute a fix, it seems to be quite easy to implement. Please let me know if you would like me to submit a PR.
Author
Owner

@jeremystretch commented on GitHub (Jul 14, 2025):

@swoga assigned to you, thanks!

@jeremystretch commented on GitHub (Jul 14, 2025): @swoga assigned to you, thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11350