[lxc-devel] [PATCH] add lxc.network.veth.script configuration hook

Stefan Tomanek stefan at pico.ruhr.de
Thu Oct 7 13:06:43 UTC 2010


Dies schrieb Daniel Lezcano (daniel.lezcano at free.fr):

>   * lxc.network.script.pre:
> 
> IMO,  it does not make sense because that means it is the host itself 
> which should be modified, so that fall under the host network 
> configuration umbrella => administrator job :P

I cannot think of a fitting example, but I'd like to point at Debian's
/etc/network/interfaces that has an even wider variety of hooks:

pre-up
up
post-up

pre-down
down
post-down

And all of them are useful in one or another way :-)

>   * lxc.network.script.create
> 
> Ok
> 
>   * lxc.network.script.post
> 
> Do you have an example of use case. Does it hurt if we 'merge' the 
> 'post' and 'create' hooks and put the 'create' right after the virtual 
> devices are created ? If it is done before, will fall in the same 'pre' 
> hook case, no ?

The post script can be generic for all types of network configuration, while
script.create is highly dependent on the type of network setup.

PS: No need to CC every message to me, that way, mutt does not recognize
the mailing list and makes responding awkward :-)
-- 
stefan at pico.ruhr.de
GPG available and welcome
http://stefans.datenbruch.de/




More information about the lxc-devel mailing list