np-guard / models

Models for connectivity and network resources
https://pkg.go.dev/github.com/np-guard/models
Apache License 2.0
1 stars 0 forks source link

get the first address of an ipblock #36

Closed haim-kermany closed 5 months ago

haim-kermany commented 5 months ago

currently, for LB parsing, I use this: firstRange := subnetsFreeAddresses[subnet].Split()[0].ToIPRanges() address := strings.Split(firstRange, "-")[0] addressBlock, _ := ipblock.FromIPAddress(address)

zivnevo commented 5 months ago

Fixed by #41