Skip to content

Comments

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

Merged
rodvand merged 1 commit intonetbox-community:develfrom
jadyndev:devel
Mar 30, 2025
Merged

fix: Add prefixes to site for NetBox >=4.2#1393
rodvand merged 1 commit intonetbox-community:develfrom
jadyndev:devel

Conversation

@jadyndev
Copy link
Contributor

@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.

@rodvand rodvand merged commit df09c94 into netbox-community:devel Mar 30, 2025
60 of 63 checks passed
k-304 pushed a commit to cloudscale-ch/netbox-community.ansible_modules that referenced this pull request Apr 7, 2025
k-304 pushed a commit to cloudscale-ch/netbox-community.ansible_modules that referenced this pull request Apr 7, 2025
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.

2 participants