ПО итогам этого обсуждения поясни, в чем суть проблемы и как она решается. Skip to…
- User
User: ПО итогам этого обсуждения поясни, в чем суть проблемы и как она решается.
Skip to contentNavigation MenuProductSolutionsResourcesOpen SourceEnterprisePricingSearch or jump to...Sign inSign upnetbox-community/netboxPublicNotificationsFork 2.7k Star 16.9kCodeIssues353Pull requests17DiscussionsActionsProjectsWikiSecurity2InsightsMapping between used Prefixes and IP Addresses availability #9019New issueClosedClosedMapping between used Prefixes and IP Addresses availability#9019DescriptionVictorPetrescuopened on Apr 2, 2022NetBox versionv3.1.10Python version3.9Steps to Reproduce1. Create a Prefix with /242. Assign three other child Prefixes with /30 and mark them as Fully Utilized.3. Assign in the /24 Prefix, some random IP Addresses.Expected BehaviorYou should not be allowed to allocate an IP Addresses from the /30 child Prefix. Or even to mark them as used in the IP Addresses View.Observed BehaviorEven if I marked the /30 Prefix as Fully Utilized, when I allocate an IP Addresses I am not aware of the /30 that is used, and I can allocate an IP Address from that range.Prefix: 192.168.100.0/24 Child Prefix 1: 192.168.100.32/30 (Marked as 100% Utilized) Child Prefix 2: 192.168.100.36/30 (Marked as 100% Utilized) Child Prefix 3: 192.168.100.40/30 (Marked as 100% Utilized)Under the IP Addresses Section in the 192.168.100.0/24 Prefix I should not be allowed to alocate an IP Address from none of the 3 Child Prefixes, or at least to see them used, not available, like in the picture.192.168.100.34 says is available, and I could add 192.168.100.33/32 and 192.168.100.37/32, even though there part of a fully utilized prefix.Also in the IP Addresses Section from the Child Prefix (192.168.100.32/30) there are still Available IPs.Thank you.ActivityVictorPetrescuadded type: bugA confirmed report of unexpected behavior in the applicationon Apr 2, 2022DetunizedGravity commented on Apr 2, 2022DetunizedGravityon Apr 2, 2022What is the actual meaning of "Mark as fully utilized" for you?I interpret it as "all IP address in this prefix have been alloted, but not all of them have been/can be registered in Netbox right now". I do not* interpret it as "I do not want to register any IP address of this prefix, ever, in Netbox".For example, I may want to use a prefix to represent a DHCP pool, of which a few IP are fixed leases. I would use the mark as fully used flag to show that the whole prefix is reserved for use by the DHCP server The only addresses that it would make sense to register are the permanent leases because they are the only ones that do not change host randomly. What you propose would prevent me from doing that.VictorPetrescu commented on Apr 2, 2022VictorPetrescuon Apr 2, 2022AuthorIn the scenario that I described, "Mark as fully utilized" means all the IPs in that range are used and I cannot allocate an IP Address from those /30 ranges. Let's say I give /30 to a customer 1...I have to know that when I allocate an IP Address to another customer 2, I don't use one from the range given to customer 1. And yes, it can be done, because now there is no warning to say there is an overlap.Maybe the "Mark as fully utilized" is not the solution for what I describe…but I think it should be a warning that it occurs in an overlap.DetunizedGravity commented on Apr 3, 2022DetunizedGravityon Apr 3, 2022 via email · edited by DetunizedGravityYour use case looks more like a matter of tenancy to me. Giving a /30 to a customer literally translates to "assign this customer as tenant of the /30." What you are asking for is a way to make sure that IP address inside a prefix belongs to the same tenant as the prefix.
- Assistant