]> xenbits.xensource.com Git - libvirt.git/commitdiff
lxc domain allow to set peer address
authorVasiliy Tolstov <v.tolstov@selfip.ru>
Mon, 4 Apr 2016 21:00:04 +0000 (21:00 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 7 Apr 2016 17:27:15 +0000 (18:27 +0100)
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
src/lxc/lxc_container.c

index a909b660b3ae6efb4633519eeaa252115bd148f8..a1deb0c00d4c7ff6f6411b09bf3a9b68b682cbed 100644 (file)
@@ -520,7 +520,7 @@ static int lxcContainerRenameAndEnableInterfaces(virDomainDefPtr vmDef,
 
             VIR_DEBUG("Adding IP address '%s/%u' to '%s'",
                       ipStr, ip->prefix, newname);
-            if (virNetDevSetIPAddress(newname, &ip->address, NULL, prefix) < 0) {
+            if (virNetDevSetIPAddress(newname, &ip->address, &ip->peer, prefix) < 0) {
                 virReportError(VIR_ERR_SYSTEM_ERROR,
                                _("Failed to set IP address '%s' on %s"),
                                ipStr, newname);