]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
openvzDomainSetNetwork: use virCommand
authorMichal Privoznik <mprivozn@redhat.com>
Sun, 19 May 2013 09:17:19 +0000 (11:17 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 20 May 2013 16:55:29 +0000 (18:55 +0200)
commitd8b31306647936472a2c99e089b96f8619a7aca7
treeeafacdd36fc99176f9be1ef077a1411264dd0946
parent3a6204cbbdf60b24f67ab48997598a88063264d6
openvzDomainSetNetwork: use virCommand

Currently, the openvzDomainSetNetwork function constructs an
array of strings representing a command line for VZCTL binary.
This is a overkill since our virCommand APIs can cover all the
functionality. Moreover, the function is not following our
structure where return value is set to -1 initially, and after
all operations succeeded then it is set to zero.
src/openvz/openvz_driver.c