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: Netbox 4.0 breaking change #123

Merged
merged 4 commits into from
Aug 3, 2024

Conversation

tardoe
Copy link
Contributor

@tardoe tardoe commented Jun 18, 2024

Renames device.device_role to device.role. This fixes adds logic to handle this change across Netbox versions.

…ce.role. This fixes adds logic to handle this change across Netbox versions.
Copy link

@radaelbroko radaelbroko left a comment

Choose a reason for hiding this comment

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

I'm running Netbox 4.0.5 and with this changes in nxr.py worked for me. Thanks!

@tardoe
Copy link
Contributor Author

tardoe commented Jul 10, 2024

@bortok Have you got a moment to review this one?

@bortok
Copy link
Contributor

bortok commented Jul 10, 2024

@tardoe sorry for the delay, I'm traveling this month. The reason I didn't merge it right away is the need to bump netbox versions in the CI environment to test with 4.0.

@bortok
Copy link
Contributor

bortok commented Jul 22, 2024

Hi @tardoe, I'm working on this. Could you please cancel this PR and make a new one with dev branch as a target? Thank you and sorry for the delay.

@tardoe tardoe changed the base branch from main to dev July 30, 2024 01:51
it has to be under the role setting if block to make sure the role is defined
Copy link
Contributor

@bortok bortok left a comment

Choose a reason for hiding this comment

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

tested with NB v4.0

@bortok bortok merged commit 10cb6c3 into netreplica:dev Aug 3, 2024
5 of 6 checks passed
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.

None yet

3 participants