summaryrefslogtreecommitdiffstats
path: root/src/nspawn/nspawn-network.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* nspawn: add new --network-zone= switch for automatically managed bridge devicesLennart Poettering2016-05-091-1/+2
| | | | | | | | | | | | | This adds a new concept of network "zones", which are little more than bridge devices that are automatically managed by nspawn: when the first container referencing a bridge is started, the bridge device is created, when the last container referencing it is removed the bridge device is removed again. Besides this logic --network-zone= is pretty much identical to --network-bridge=. The usecase for this is to make it easy to run multiple related containers (think MySQL in one and Apache in another) in a common, named virtual Ethernet broadcast zone, that only exists as long as one of them is running, and fully automatically managed otherwise.
* nspawn: explicitly remove veth links we created after useLennart Poettering2016-04-251-0/+2
| | | | | | | Sometimes the kernel keeps veth links pinned after the namespace they have been joined to died. Let's hence explicitly remove veth links after use. Fixes: #2173
* tree-wide: remove Emacs lines from all filesDaniel Mack2016-02-101-2/+0
| | | | | This should be handled fine now by .dir-locals.el, so need to carry that stuff in every file.
* tree-wide: sort includes in *.hThomas Hindoe Paaboel Andersen2015-11-181-2/+1
| | | | | This is a continuation of the previous include sort patch, which only sorted for .c files.
* nspawn: add new --network-veth-extra= switch for defining additional veth linksLennart Poettering2015-11-121-0/+3
| | | | | | | | | | | The new switch operates like --network-veth, but may be specified multiple times (to define multiple link pairs) and allows flexible definition of the interface names. This is an independent reimplementation of #1678, but defines different semantics, keeping the behaviour completely independent of --network-veth. It also comes will full hook-up for .nspawn files, and the matching documentation.
* nspawn: split out network related code to nspawn-network.[ch]Lennart Poettering2015-09-071-0/+36