mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-04-01 20:05:19 +00:00
util: support setting peer for virNetDevIPInfo addresses
This will apply to any IP address setting that uses virNetDevIPInfoAddToDev() (which so far is only the guest-side of LXC type='ethernet' interfaces). (This patch had been pushed earlier in commit cb20f989df393ec97ba65afb06089d0ab87af484, but was reverted in commit cba06aea8d500d4ea7e2f40272be484027dd3e4a because it had been accidentally pushed during the freeze for release 2.0.0)
This commit is contained in:
parent
98fa8f3ef6
commit
d83cac49e3
@ -920,7 +920,7 @@ virNetDevIPInfoAddToDev(const char *ifname,
|
||||
VIR_FREE(ipStr);
|
||||
goto cleanup;
|
||||
}
|
||||
if (virNetDevIPAddrAdd(ifname, &ip->address, NULL, prefix) < 0)
|
||||
if (virNetDevIPAddrAdd(ifname, &ip->address, &ip->peer, prefix) < 0)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user