libvirt/src/lxc
Laine Stump 95309424ba util: new function virNetDevIPInfoAddToDev
This patch takes the code out of
lxcContainerRenameAndEnableInterfaces() that adds all IP addresses and
IP routes to the interface, and puts it into a utility function
virNetDevIPInfoAddToDev() in virnetdevip.c so that it can be used by
anyone.

One small change in functionality -
lxcContainerRenameAndEnableInterfaces() previously would add all IP
addresses to the interface while it was still offline, then set the
interface online, and then add the routes. Because I don't want the
utility function to set the interface online, I've moved this up so
the interface is first set online, then IP addresses and routes are
added. This is the same order that the network service from
initscripts (in ifup-ether) does it, so it shouldn't pose any problem
(and hasn't, in the tests that I've run).

(This patch had been pushed earlier in commit
f1e0d0da11, but was reverted in commit
05eab47559 because it had been
accidentally pushed during the freeze for release 2.0.0)
2016-07-01 21:13:30 -04:00
..
libvirtd_lxc.aug
lxc_cgroup.c util: Replace virDomainDiskSourceIsBlockType with a new helper 2016-05-09 12:36:52 +02:00
lxc_cgroup.h lxc: report veth device indexes to systemd 2015-01-27 13:57:02 +00:00
lxc_conf.c nodeinfo: remove sysfs_prefix from all methods 2016-06-09 18:00:18 +01:00
lxc_conf.h lxc: use general virhostdev lists instead of its own 2014-03-12 16:03:04 +00:00
lxc_container.c util: new function virNetDevIPInfoAddToDev 2016-07-01 21:13:30 -04:00
lxc_container.h lxc: Inherit namespace feature 2015-08-26 11:28:30 +01:00
lxc_controller.c conf: use virNetDevIPInfo in virDomainHostdevCaps 2016-06-26 19:33:09 -04:00
lxc_domain.c lxc: completely rework reference counting 2016-05-24 16:54:01 +02:00
lxc_domain.h lxc: completely rework reference counting 2016-05-24 16:54:01 +02:00
lxc_driver.c conf: Rename virDomainDefGetMemoryActual to virDomainDefGetMemoryTotal 2016-06-17 10:39:40 +02:00
lxc_driver.h
lxc_fuse.c conf: Rename virDomainDefGetMemoryActual to virDomainDefGetMemoryTotal 2016-06-17 10:39:40 +02:00
lxc_fuse.h headers: Remove unnecessary keyword extern from function declaration 2016-05-11 09:06:32 +02:00
lxc_hostdev.c Replace Usb with USB throughout 2014-04-08 11:10:59 +01:00
lxc_hostdev.h Replace Usb with USB throughout 2014-04-08 11:10:59 +01:00
lxc_monitor_protocol.x Unify int types handling in protocol files 2016-01-11 19:56:06 +03:00
lxc_monitor.c Indent top-level labels by one space in src/lxc/ 2014-03-25 14:58:39 +01:00
lxc_monitor.h
lxc_native.c conf: use virNetDevIPInfo for guest-side <interface> config 2016-06-26 19:33:09 -04:00
lxc_native.h lxc: use virDomainDefPostParse for parsing LXC config string 2015-12-09 12:59:02 +01:00
lxc_process.c Revert "lxc: support setting host-side IP addresses/routes" 2016-06-27 12:54:55 +02:00
lxc_process.h lxc: support <interface type='ethernet'> 2016-05-24 15:21:05 -04:00
lxc.conf
test_libvirtd_lxc.aug.in