summaryrefslogtreecommitdiff
path: root/src/nspawn
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-03-16 13:55:41 +0100
committerTom Gundersen <teg@jklm.no>2014-03-16 13:55:41 +0100
commit039dd4afd64a8c8413ff28d43f533c30c5a06a16 (patch)
tree8b558d8c3309af4c4f832791f262816768d0708d /src/nspawn
parent1f0db3ed88015a0510b8bf4723af2121ee55d9a8 (diff)
nspawn: UP the host side of the veth pair after adding it to a bridge
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/nspawn.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index dd7cfc4095..bb33de3b7f 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -1581,6 +1581,12 @@ static int setup_bridge(const char veth_name[]) {
return r;
}
+ r = sd_rtnl_message_link_set_flags(m, IFF_UP, IFF_UP);
+ if (r < 0) {
+ log_error("Failed to set IFF_UP flag: %s", strerror(-r));
+ return r;
+ }
+
r = sd_rtnl_message_append_string(m, IFLA_IFNAME, veth_name);
if (r < 0) {
log_error("Failed to add netlink interface name field: %s", strerror(-r));