[lxc-devel] [PATCH] add lxc.network.veth.script configuration hook
Stefan Tomanek
stefan at pico.ruhr.de
Thu Oct 7 11:19:51 UTC 2010
> I suggest you add a lxc.network.script section where it will be
> called from each instanciate_*
I thought about that, but I think that name is to generic - it might be
useful to provide several different locations to call a script. In my case,
the obvious location is the instanciation function, where the name of the
host-facing veth device is available; for other purposes, the script should
be called after the network configuration has been completed.
So I'd propose to introduce a few new variables, e.g.
lxc.network.script.pre # called before network setup
lxc.network.script.create # called during instanciate_*
lxc.network.script.post # called after network setup
Any thoughts about that?
More information about the lxc-devel
mailing list