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

fix: Add prefixes to site for NetBox >=4.2 #1393

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

jadyndev
Copy link

@jadyndev jadyndev commented Mar 9, 2025

New Behavior

This fixes a bug where sites doesn't contain the prefixes list when using NetBox >= 4.2.0, due to breaking changes in the datamodel (https://github.com/netbox-community/netbox/releases/tag/v4.2.0)

  • The site foreign key field on ipam.Prefix has been replaced by the scope generic foreign key.

Discussion: Benefits and Drawbacks

  • No drawbacks, as compatibility with older NetBox versions is maintained

Double Check

  • I have read the comments and followed the CONTRIBUTING.md.
  • I have explained my PR according to the information in the comments or in a linked issue.
  • My PR targets the devel branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant