mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
openvz: Fix code coverage issue in OpenVZ driver
After fixing an invalid usage of virDomainNetDef in OpenVZ driver, a coverage issue appeared. This was caused by a still invalid usage of net->data.ethernet.dev for non ethernet networking.
This commit is contained in:
parent
e5fa9db17e
commit
5d39a491ff
@ -859,7 +859,7 @@ openvzDomainSetNetwork(virConnectPtr conn, const char *vpsid,
|
||||
/* if user doesn't specified host interface name,
|
||||
* than we need to generate it */
|
||||
if (net->ifname == NULL) {
|
||||
net->ifname = openvzGenerateVethName(veid, net->data.ethernet.dev);
|
||||
net->ifname = openvzGenerateVethName(veid, guest_ifname);
|
||||
if (net->ifname == NULL) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("Could not generate veth name"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user