]> git.proxmox.com Git - lxc.git/blame_incremental - debian/patches/pve/0002-PVE-Down-run-lxcnetaddbr-when-instantiating-veths.patch
bump version to 3.0.2+pve1-1
[lxc.git] / debian / patches / pve / 0002-PVE-Down-run-lxcnetaddbr-when-instantiating-veths.patch
... / ...
CommitLineData
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3Date: Fri, 10 Feb 2017 09:15:37 +0100
4Subject: [PATCH] PVE: [Down] run lxcnetaddbr when instantiating veths
5
6FIXME: Why aren't we using regular up-scripts?
7
8Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9---
10 src/lxc/network.c | 5 +++++
11 1 file changed, 5 insertions(+)
12
13diff --git a/src/lxc/network.c b/src/lxc/network.c
14index dd294cd9..871a6e6b 100644
15--- a/src/lxc/network.c
16+++ b/src/lxc/network.c
17@@ -194,6 +194,11 @@ static int instantiate_veth(struct lxc_handler *handler, struct lxc_netdev *netd
18 netdev->upscript, "up", argv);
19 if (err < 0)
20 goto out_delete;
21+ } else if (netdev->link[0] == '\0') {
22+ err = run_script(handler->name, "net", "/usr/share/lxc/lxcnetaddbr", "up",
23+ "veth", veth1, (char*) NULL);
24+ if (err)
25+ goto out_delete;
26 }
27
28 DEBUG("Instantiated veth \"%s/%s\", index is \"%d\"", veth1, veth2,
29--
302.11.0
31