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

Stefan Tomanek stefan.tomanek at wertarbyte.de
Fri Oct 8 12:48:44 UTC 2010


Dies schrieb Michael Tokarev (mjt at tls.msk.ru):

> > I know, but there might be a point in executing a point script before
> > network configuration in general. I cannot thin of an example right now,
> > but Debian has the same distinction for its network configuration.
> 
> It occured to me too that you may be following debian network/interfaces.
> But this is something else: in the pre-up in debian you may want to
> load a NIC driver module for example, so that the interface actually
> appears and when it goes to the initialisation stage when ifup runs
> tools like ifconfig to configure the IP addresses, the interface is
> already here.  In lxc, the whole 'pre-up' stage is always done by
> lxc tools (instantiating veth/macvlan/etc device), so there's just
> no "pre-up" stage at all.

pre-up is used for other purposes as well, I've written quit some extensions
to Debian's ifupdown. WIFI-configuration takes place at that time.

Your point assumes that the work done by LXC covers all cases of use; however,
this is probably not the case - actually, the lack of decent veth
configurability is my intention for this patch. Having an extra hook available,
even if not used, will make it easier for admins 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:  kontakt at wertarbyte.de




More information about the lxc-devel mailing list