virsh attach-interface: Use enum instead of arbitrary integers
virsh attach-interface: Use enum instead of arbitrary integers

The type of interface to attach is held in the variable 'typ'.
Depending on interface type selected by user, the variable is set
either to 1 (network), or 2 (bridge). Lets use already existing
enum from domain_conf.h instead: virDomainNetType.

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>

datto/libvirt,rlaager/libvirt,datto/libvirt,jfehlig/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,shugaoye/libvirt,eskultety/libvirt,nertpinx/libvirt,taget/libvirt,VenkatDatta/libvirt,zippy2/libvirt,datto/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,zippy2/libvirt,zippy2/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,nertpinx/libvirt,olafhering/libvirt,andreabolognani/libvirt,nertpinx/libvirt,agx/libvirt,andreabolognani/libvirt,shugaoye/libvirt,libvirt/libvirt,libvirt/libvirt,jardasgit/libvirt,crobinso/libvirt,taget/libvirt,zippy2/libvirt,rlaager/libvirt,jardasgit/libvirt,crobinso/libvirt,datto/libvirt,jardasgit/libvirt,libvirt/libvirt,agx/libvirt,rlaager/libvirt,jardasgit/libvirt,rlaager/libvirt,fabianfreyer/libvirt,olafhering/libvirt,eskultety/libvirt,crobinso/libvirt,rlaager/libvirt,libvirt/libvirt,taget/libvirt,olafhering/libvirt,jfehlig/libvirt,agx/libvirt,crobinso/libvirt,jfehlig/libvirt,agx/libvirt,eskultety/libvirt,andreabolognani/libvirt,shugaoye/libvirt,olafhering/libvirt,agx/libvirt,shugaoye/libvirt,nertpinx/libvirt,datto/libvirt,nertpinx/libvirt,eskultety/libvirt,andreabolognani/libvirt,shugaoye/libvirt,fabianfreyer/libvirt,eskultety/libvirt,taget/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,taget/libvirt