You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to remove a host from a IpRange by doing a remove <ip>/32 and I'm getting this is returning way less hosts than it should. Here is the POC for this issue
This is because you remove a subnet instead of an address from the range. This operation splits the original 10.0.0.0/24 into a lot more smaller ranges. So, the hosts method provided by ipnet excludes more network and broadcast addresses than you expected.
Ah, its makes completely sense. although on the /32 the broadcast should be the same IP, but as you said for sure the ipnet doesn't print the broadcast etc on the smaller / spitted networks I will check tonight on the code, and see if I implement something on my side. as the difference seems 10 IP's. will close later when validate the code
I'm trying to remove a host from a IpRange by doing a remove
<ip>/32
and I'm getting this is returning way less hosts than it should. Here is the POC for this issuethis returns
hosts: 243
and we should have 253The text was updated successfully, but these errors were encountered: