]> git.ipfire.org Git - thirdparty/lxc.git/commit
load_config_locked: update unexp network
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 22 Aug 2014 04:45:18 +0000 (04:45 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 22 Aug 2014 18:58:15 +0000 (13:58 -0500)
commitd08779d49d36db9e2dd8ab33a4af9db281a001b5
tree22e647ce366dfe67e19a968eea1623b1432e4ed7
parent2eef2bda81c8e7d4c64ab90105342918e0e65f9d
load_config_locked: update unexp network

When we read a lxc.network.hwaddr line, if it contained any 'x's then
those get quitely filled in at config_network_hwaddr.  If that happens
then we want to save the autogenerated hwaddr in the unexpanded config
so that when we write it to disk, it is saved.

This patch dumbly re-generates the network configuration in the
unexp configuration every time we load a config file, just as we do
after every clone.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxccontainer.c