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

fixing bug #975 #1323

Merged
merged 22 commits into from
Oct 19, 2024
Merged

fixing bug #975 #1323

merged 22 commits into from
Oct 19, 2024

Conversation

Ido-Don
Copy link
Contributor

@Ido-Don Ido-Don commented Sep 20, 2024

Related Issue

The issue this PR is trying to fix is #975

New Behavior

this pull request changes the data object to include the assigned_object_id and assigned_object_type values.
it takes the interface_id that exists in the interface value and adds an assigned_object_id and an assigned_object_type item.

Contrast to Current Behavior

the current behavior will not assign an IP to the interface.

Discussion: Benefits and Drawbacks

This bug prevents the assigning of an IP to an interface.
it is backwards compatible.

It is worth noting that there is a duplication between the assigned_object and interface values.
In my opinion it is best to deprecate the interface value internally and make people use only the assigned_object value.

Changes to the Documentation

the documentation already states this functionality, it was not implemented but it should have.

Proposed Release Note Entry

netbox_ip_address - Fixed the problem preventing assignment of an IP address to a network interface

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.

@sc68cal
Copy link
Contributor

sc68cal commented Oct 11, 2024

This looks good to me, just needs a changelog put into the fragments directory and then maybe a test to verify the behavior? (if one doesn't already exist)

@Ido-Don
Copy link
Contributor Author

Ido-Don commented Oct 12, 2024

I added the tests and fragment to the PR.
if there is anything else let me know
Should i open an issue so we could discuss the deprecation of the interface value?

@Ido-Don Ido-Don marked this pull request as ready for review October 12, 2024 15:23
Copy link
Contributor

@sc68cal sc68cal left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution!

@sc68cal
Copy link
Contributor

sc68cal commented Oct 15, 2024

Should i open an issue so we could discuss the deprecation of the interface value?

Yes please do

@Ido-Don Ido-Don closed this Oct 17, 2024
@Ido-Don Ido-Don deleted the github-issue-#975 branch October 17, 2024 18:43
@Ido-Don Ido-Don restored the github-issue-#975 branch October 17, 2024 18:47
@Ido-Don Ido-Don reopened this Oct 17, 2024
@Ido-Don
Copy link
Contributor Author

Ido-Don commented Oct 17, 2024

Should i open an issue so we could discuss the deprecation of the interface value?

Yes please do

I opened issue #1338, you are welcome to come and take a look 😁

@Ido-Don
Copy link
Contributor Author

Ido-Don commented Oct 17, 2024

Thank you for the contribution!

Thank you for reviewing my code!
now all that i need is to marge the changes 😄

@sc68cal sc68cal merged commit 4b203df into netbox-community:devel Oct 19, 2024
50 checks passed
@Ido-Don Ido-Don deleted the github-issue-#975 branch November 23, 2024 19:16
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