Closed n3storm closed 6 years ago
Okay, my bad, just for the help of somebody else:
for "lxc.network" keys you have to do first set(container.get_config_item('lxc.network'))
so you get how many networks your container have.
After that you can index the keys to get their values. If you get one lxc.network key, then you can: container.get_config_item('lxc.network.0.link') and so on.
If you have two, you can access lxc.network.0.link and lxc.network.1.link
Please close this ticket.
Thanks!
This already has been reported though in wrong place at https://github.com/lxc/lxc/issues/1518
Using latest python3-lxc-3.0.2 release I face the same issue:
Some kind of demonstration with config before: