]> xenbits.xensource.com Git - libvirt.git/commitdiff
Revert "lxc: support setting host-side IP addresses/routes"
authorJán Tomko <jtomko@redhat.com>
Mon, 27 Jun 2016 09:56:17 +0000 (11:56 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 27 Jun 2016 10:54:55 +0000 (12:54 +0200)
This reverts commit cd5c9f21ded4f8e6216eba02b8795f70503ab404.

This feature was accidentally pushed in the feature freeze.

src/lxc/lxc_process.c

index 28313f0f77a90676a6aa1cc647e5c5e261729e8b..07eb22af023112d43ef0bb911d8d9577c506f4c2 100644 (file)
@@ -304,14 +304,6 @@ virLXCProcessSetupInterfaceTap(virDomainDefPtr vm,
     if (virNetDevSetOnline(parentVeth, true) < 0)
         goto cleanup;
 
-    if (virDomainNetGetActualType(net) == VIR_DOMAIN_NET_TYPE_ETHERNET) {
-        /* Set IP info for the host side, but only if the type is
-         * 'ethernet'.
-         */
-        if (virNetDevIPInfoAddToDev(parentVeth, &net->hostIP) < 0)
-            goto cleanup;
-    }
-
     if (net->filter &&
         virDomainConfNWFilterInstantiate(vm->uuid, net) < 0)
         goto cleanup;