]> git.proxmox.com Git - lxc.git/blob - debian/patches/0002-pve-run-lxcnetaddbr-when-instantiating-veths.patch
bump version to 3.0.0-3
[lxc.git] / debian / patches / 0002-pve-run-lxcnetaddbr-when-instantiating-veths.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 Date: Fri, 10 Feb 2017 09:15:37 +0100
4 Subject: [PATCH] pve: run lxcnetaddbr when instantiating veths
5
6 FIXME: Why aren't we using regular up-scripts?
7
8 Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
9 ---
10 src/lxc/network.c | 5 +++++
11 1 file changed, 5 insertions(+)
12
13 diff --git a/src/lxc/network.c b/src/lxc/network.c
14 index e31066cb..d136bad1 100644
15 --- a/src/lxc/network.c
16 +++ b/src/lxc/network.c
17 @@ -216,6 +216,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 --
30 2.11.0
31