Skip to content

Extend More GraphQL Relationships #10595

Closed
@arthanson

Description

@arthanson

NetBox version

v3.3.3

Feature type

Change to existing functionality

Proposed functionality

Extend GraphQL relationships for more GFK models (for example cable a_terminations, b_terminations).

Each CableTermination maps a particular object to a cable (associating it with either the A or B end). The REST API includes a_terminations and b_terminations for each cable using GenericObjectSerializer.

  • L2VPN terminations work similarly to cable terminations.
  • Device components (e.g. dcim.Interface) and component templates (e.g. dcim.InterfaceTemplate) can have inventory items assigned to them.
  • Most objects in NetBox support change logging, so we probably want a way to return all ObjectChanges associated with a particular object.
  • Same as above with journal entries.
  • Several models (sites, rack, devices...) support the attachment of ImageAttachments and/or ContactAssignments.
  • Both device and VM interfaces can have IP addresses and/or FHRP groups assigned to them.
  • A VLAN group can define its scope as a region, site group, site, location, rack, cluster group, or cluster.

Use case

Allows GraphQL queries to trace through objects like cabling, matching the REST API better.

Database changes

No response

External dependencies

No response

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions