Since you comment above saying that LXC does not support network yet,
it
would be good to remove
elif virt == 'LXC':
net_mac = const.LXC_default_mac
part as of now and add it when it is needed. I leave it upto you.
If one is running a patched kernel with NETNS support, it is possible to
get network to work with Containers. So I would leave this as is.
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin(a)linux.vnet.ibm.com