-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
IP Prefix in VRF showing in all parent global container prefixes as well as master prefix list #2562
Comments
I am unable to recreate as was originally posted. I am able to recreate this by importing my prefixes from production onto development. Further information, this looks like it is related to the amount of prefixes in the database. I will slowly add prefixes and see where it errors out. |
Edited test case, should now be able to reproduce. Import(s) for prefixes:
Imports for VRFs:
|
Looks like this might be related to #1073 Root cause appears to be annotate_depth as annotate depth expects the next prefix to either be a child prefix or a new prefix and when something gets in the way between two child prefixes, it breaks. |
…rdering to allow allow for proper matching of heirarchy for IP address space
I did some work on this, and discovered that the fix isn't as easy as I originally thought, It does hide the prefix, but it also hides the prefix if it is in a different VRF, so there will need some logic added to check for that, which is where I think it was failing before. |
I can confirm that this is still a bug. I will be starting work on this shortly |
@DanSheps What is the status of this? |
After speaking with @DanSheps, I don't think it's feasible to address this efficiently given the current logic in place for determining the IP prefix hierarchy. I'm going to close this out, and hope to revisit the issue once we have a better performing solution in place for calculating nested prefix depth. |
So, at this moment is it not possible to display nested subnets in different VRF display as child with respect to global container? |
Hi developers! |
Environment
Prefixes that are within a global container also visible on the main prefix list page, as well as subsequent child prefix lists within a prefix.
Related: #1073
Steps to Reproduce
Expected Behavior
Observed Behavior
Prefix 10.0.0.0/24 is visible in (incorrect):
Prefix 10.1.0.0/24 is visible in:
Prefix 10.1.0.0/25 is visible in (this behaviour is correct, just included as a test case):
The text was updated successfully, but these errors were encountered: