Hi
In a current setup flow there are 3 ways of generating mac pool ranges:
1. Generated from the second and third parts of the first non-local IP:
{base MAC}:{IP part2}:{IP part3}:00-{base MAC}:{IP part2}:{IP
part3}:ff
2. If (1) could not be done for some reason, we have default values in
setup.
3. If (2) didn't work for some reason, the values are left as created
during DB creation.
Assuming that we want (1) to work the best way possible, and to create
"random" enough values for Mac Pool ranges, I would ask for an opinion
for a better way.
I am considering creating random int values instead of fetching the IP
as it's simpler and safer than parsing 'ip a' output.
Thanks.
Alex Lourie
Software Engineer in Integration
Red Hat.