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

Inconsistent Parent-Child Relationship for IP Addresses After Prefix Renaming #6698

Open
kacem-expereo opened this issue Dec 26, 2024 · 0 comments
Labels
triage This issue is new and has not been reviewed. type: bug Something isn't working as expected

Comments

@kacem-expereo
Copy link

kacem-expereo commented Dec 26, 2024

Environment

  • Nautobot version : 2.4.0b1 (demo nautobot)

Steps to Reproduce

I noticed a behavior change between 2.3.0 and the demo version 2.4.0b1 but I could not locate the appropriate commit.
1.Create a prefix without parents.(Easier done in a new namespace)
2.Create one or many ip addresses under this prefix
3.rename the prefix.

Expected Behavior

The ip addresses belonging to the original prefix should become orphan or the model should prevent the prefix from being renamed.
Since the model does not allow an ip to be orphan. I would expect renaming the prefix impossible until the user renames all IP addresses...?

Observed Behavior

The prefix shown in the GUI has no ip addresses which is expected. However the Ip addresses still have a parent connection with the renamed prefix.
See :
https://next.demo.nautobot.com/ipam/ip-addresses/9c84aa9c-f892-4138-8cb8-4854009c8e90/?tab=main
IP address 192.168.1.1/24 has 192.168.42.0/24 as parent.

@kacem-expereo kacem-expereo added triage This issue is new and has not been reviewed. type: bug Something isn't working as expected labels Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage This issue is new and has not been reviewed. type: bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

1 participant