[lxc-devel] [PATCH] add lxc.network.script(.pre|.post|) configuration hooks

2010-10-08 Thread Stefan Tomanek
This commit adds an configuration option to specify a script to be executed before, during and after creating or configuring the pair of veth devices. The name of the host sided device is passed as an argument, so the script can be used to configures routes or firewall rules related to the

Re: [lxc-devel] [PATCH] add lxc.network.script(.pre|.post|) configuration hooks

2010-10-08 Thread Stefan Tomanek
to adapt their setup to their needs - and not having to re-learn C programming like I did in the last few days :-) -- - Wertarbyte EDV-Dienstleistungen - Stefan Tomanek WWW: http://wertarbyte.de/ E-Mail: kont...@wertarbyte.de

Re: [lxc-devel] [PATCH] add lxc.network.script(.pre|.post|) configuration hooks

2010-10-08 Thread Stefan Tomanek
it... -- - Wertarbyte EDV-Dienstleistungen - Stefan Tomanek WWW: http://wertarbyte.de/ E-Mail: kont...@wertarbyte.de -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1

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

2010-10-08 Thread Stefan Tomanek
This commit adds a configuration option to specify a script to be executed after creating and configuring the network used by the container. The following arguments are passed to the script: * container name * config section name (net) Additional arguments depend on the config

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

2010-10-07 Thread Stefan Tomanek
Dies schrieb Daniel Lezcano (daniel.lezc...@free.fr): I suggest you add a lxc.network.script section where it will be called from each instanciate_* OK, that's what an earlier version of the patch did, so I partially reverted :-) The script should receive always the two parameters: $1

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

2010-10-07 Thread Stefan Tomanek
Dies schrieb Daniel Lezcano (daniel.lezc...@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

[lxc-devel] Script hook for veth configuration (incl. patch)

2010-10-06 Thread Stefan Tomanek
Hello, I'd like to use lxc for containing virtual debian instances, using the veth networking method. Due to the network topology employed, I do not want to use a bridge to connect the virtual devices to the real network, but set individual host routes for each container. I added a configuration

Re: [lxc-devel] Script hook for veth configuration (incl. patch)

2010-10-06 Thread Stefan Tomanek
Dies schrieb Michael Tokarev (m...@tls.msk.ru): I added a configuration option lxc.network.veth.script to specify a script to be executed during the network configuration phase. That custom script can be used to set firewall rules and How about naming it lxc.network.script, without the