• L
    util: new function virNetDevIPInfoAddToDev · 95309424
    Laine Stump 提交于
    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
    f1e0d0da, but was reverted in commit
    05eab475 because it had been
    accidentally pushed during the freeze for release 2.0.0)
    95309424
libvirt_private.syms 59.6 KB