]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
add lxc.network.script.up configuration hook
authorStefan Tomanek <stefan.tomanek@wertarbyte.de>
Tue, 12 Oct 2010 08:52:47 +0000 (10:52 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 12 Oct 2010 08:52:47 +0000 (10:52 +0200)
commite3b4c4c44ae909ba5073edca975bc42ff007d9c9
tree37c4901b5f546708061ea86d0d4bc74dcc3ecff2
parent49d3e78dceea24fcdd09529d1c748b69e19ef63f
add lxc.network.script.up configuration hook

This commit adds an 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 section employing a
script hook; the following are used by the network system:

* execution context (up)
* network type (empty/veth/macvlan/phys)

Depending on the network type, other arguments may be passed:

veth/macvlan/phys:
* (host-sided) device name

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/conf.c
src/lxc/conf.h
src/lxc/confile.c
src/lxc/start.c