Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes: #14832 Extend GraphQL FHRPGroupType with IPAddressesMixin #15337

Merged

Conversation

Leo1003
Copy link
Contributor

@Leo1003 Leo1003 commented Mar 4, 2024

Fixes: #14832

This PR makes it possible to directly get the virtual ip_addresses from FHRPGroup

Example

query {
  fhrp_ips: ip_address_list(fhrpgroup_id: "1") {
    address
  }
}

Responses:

{
  "data": {
    "fhrp_ips": [
      {
        "address": "192.168.1.1/22"
      }
    ]
  }
}

Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Leo1003!

@jeremystretch jeremystretch merged commit f0e1371 into netbox-community:develop Mar 11, 2024
4 checks passed
@Leo1003 Leo1003 deleted the graphql-fhrpgroup-ipaddresses branch March 19, 2024 04:52
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend GraphQL FHRPGroupType with ip_addresses
2 participants