On Fri, Jan 14, 2011 at 2:25 PM, Michael Hanselmann <[email protected]> wrote:
> $ grep ^MAX_NICS lib/constants.py
> MAX_NICS = 8
>
Interesting. Especially because it's not used anywhere that would stop
an instance having more nics... uhm...
> I'd much rather prefer stat()'ing the files with their known name
> instead of using globbing.
>
Well, we can do a:
return (utils.PathJoin(cls._NICS_DIR, "%s-%s" % (instance_name, i))
for i in range(0..constants.MAX_NICS))
But that still doesn't solve a problem of what happens if an instance
has more nics! :)
Guido