lxc: do not require 'ifconfig' or 'ipconfig' in container
lxc: do not require 'ifconfig' or 'ipconfig' in container

Currently, the lxc implementation invokes 'ip' and 'ifconfig' commands
inside a container using 'virRun'.  That has the side effect of requiring
those commands to be present and to function in a manner consistent with
the usage.  Some small roots (such as ttylinux) may not have 'ip' or
'ifconfig'.

This patch replaces the use of these commands with usage of
netdevice.  The result is that lxc containers do not have to implement
those commands, and lxc in libvirt is only dependent on the netdevice
interface.

I've tested this patch locally against the ubuntu libvirt version enough
to verify its generally sane.  I attempted to build upstream today, but
failed with:
  /usr/bin/ld:
    ../src/.libs/libvirt_driver_qemu.a(libvirt_driver_qemu_la-qemu_domain.o):
   undefined reference to symbol 'xmlXPathRegisterNs@@LIBXML2_2.4.30

Thats probably a local issue only, but I wanted to get this patch up and
see what others thought of it.  This is ubuntu bug
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/828211 .

jeckersb/libvirt,danwent/libvirt-ovs,emaste/libvirt,novel/fbsd-libvirt,siboulet/libvirt-openvz,jeckersb/libvirt,taget/libvirt,usc-isi/libvirt,rmarwaha/libvirt,cbosdo/libvirt,wiedi/libvirt,wiedi/libvirt,soulxu/libvirt-xuhj,bjzhang/libvirt,zhlcindy/libvirt-1.1.4-maintain,usc-isi/libvirt,nertpinx/libvirt,emaste/libvirt,eskultety/libvirt,olafhering/libvirt,jeckersb/libvirt,wiedi/libvirt,dumbbell/libvirt,jfehlig/libvirt,libvirt/libvirt,trainstack/libvirt,warewolf/libvirt,jeckersb/libvirt,elmarco/libvirt,siboulet/libvirt-openvz,jeckersb/libvirt,VenkatDatta/libvirt,cbosdo/libvirt,datto/libvirt,jeckersb/libvirt,VenkatDatta/libvirt,novel/fbsd-libvirt,zhlcindy/libvirt-1.1.4-maintain,VenkatDatta/libvirt,nertpinx/libvirt,novel/fbsd-libvirt,dumbbell/libvirt,jfehlig/libvirt,warewolf/libvirt,rlaager/libvirt,rmarwaha/libvirt1,warewolf/libvirt,andreabolognani/libvirt,taget/libvirt,iam-TJ/libvirt,emaste/libvirt,dumbbell/libvirt,bjzhang/libvirt,elmarco/libvirt,warewolf/libvirt,jfehlig/libvirt,siboulet/libvirt-openvz,bjzhang/libvirt,olafhering/libvirt,zhlcindy/libvirt-1.1.4-maintain,trainstack/libvirt,usc-isi/libvirt,rmarwaha/libvirt1,zippy2/libvirt,olafhering/libvirt,crobinso/libvirt,shugaoye/libvirt,bjzhang/libvirt,leilihh/libvirt,crobinso/libvirt,taget/libvirt,soulxu/libvirt-xuhj,andreabolognani/libvirt,agx/libvirt,soulxu/libvirt-xuhj,rmarwaha/libvirt,libvirt/libvirt,wiedi/libvirt,rmarwaha/libvirt1,fabianfreyer/libvirt,rmarwaha/libvirt1,rlaager/libvirt,andreabolognani/libvirt,nertpinx/libvirt,rmarwaha/libvirt1,agx/libvirt,trainstack/libvirt,emaste/libvirt,cbosdo/libvirt,kantai/libvirt-vfork,iam-TJ/libvirt,jardasgit/libvirt,cbosdo/libvirt,leilihh/libvirt,warewolf/libvirt,VenkatDatta/libvirt,soulxu/libvirt-xuhj,foomango/libvirt,foomango/libvirt,leilihh/libvirt,eskultety/libvirt,libvirt/libvirt,trainstack/libvirt,novel/fbsd-libvirt,olafhering/libvirt,shugaoye/libvirt,kantai/libvirt-vfork,danwent/libvirt-ovs,kantai/libvirt-vfork,dumbbell/libvirt,agx/libvirt,usc-isi/libvirt,wiedi/libvirt,elmarco/libvirt,wiedi/libvirt,emaste/libvirt,libvirt/libvirt,danwent/libvirt-ovs,zhlcindy/libvirt-1.1.4-maintain,agx/libvirt,rmarwaha/libvirt,shugaoye/libvirt,soulxu/libvirt-xuhj,jfehlig/libvirt,kantai/libvirt-vfork,andreabolognani/libvirt,shugaoye/libvirt,siboulet/libvirt-openvz,leilihh/libvirt,leilihh/libvirt,trainstack/libvirt,jeckersb/libvirt,crobinso/libvirt,iam-TJ/libvirt,warewolf/libvirt,trainstack/libvirt,rmarwaha/libvirt,novel/fbsd-libvirt,eskultety/libvirt,danwent/libvirt-ovs,dumbbell/libvirt,foomango/libvirt,elmarco/libvirt,novel/fbsd-libvirt,crobinso/libvirt,jardasgit/libvirt,foomango/libvirt,wiedi/libvirt,iam-TJ/libvirt,rlaager/libvirt,iam-TJ/libvirt,zhlcindy/libvirt-1.1.4-maintain,iam-TJ/libvirt,rlaager/libvirt,warewolf/libvirt,fabianfreyer/libvirt,rmarwaha/libvirt,cbosdo/libvirt,usc-isi/libvirt,jardasgit/libvirt,rmarwaha/libvirt1,fabianfreyer/libvirt,datto/libvirt,novel/fbsd-libvirt,foomango/libvirt,iam-TJ/libvirt,rmarwaha/libvirt,datto/libvirt,emaste/libvirt,bjzhang/libvirt,novel/fbsd-libvirt,taget/libvirt,jardasgit/libvirt,zippy2/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,danwent/libvirt-ovs,leilihh/libvirt,eskultety/libvirt,shugaoye/libvirt,nertpinx/libvirt,VenkatDatta/libvirt,emaste/libvirt,fabianfreyer/libvirt,datto/libvirt,kantai/libvirt-vfork,novel/fbsd-libvirt,dumbbell/libvirt,trainstack/libvirt,datto/libvirt,siboulet/libvirt-openvz,agx/libvirt,eskultety/libvirt,elmarco/libvirt,andreabolognani/libvirt,zippy2/libvirt,taget/libvirt,zippy2/libvirt,rlaager/libvirt