]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virsh attach-interface: Use enum instead of arbitrary integers
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 9 Feb 2015 14:53:54 +0000 (15:53 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 13 Feb 2015 08:33:12 +0000 (09:33 +0100)
commit18bcba55cdb2cfcba671c6ccfd4b6ae49cb384e3
treeed766dd328ac67eeef6d8e50f72a13a8d16f492c
parent9993736f45683b0af946783d0a1e0451bbe32d17
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 <mprivozn@redhat.com>
tools/virsh-domain.c