networkd: fix link_up() (#12505)
authorSusant Sahani <ssahani@gmail.com>
Thu, 9 May 2019 02:05:35 +0000 (07:35 +0530)
committerMichael Biebl <biebl@debian.org>
Wed, 16 Oct 2019 13:24:54 +0000 (14:24 +0100)
commitea368cdd4d714dd3d2381c7658f62f63d38b66b8
tree36959573ea864b90685aaaaa6e8787e1fa1f1e90
parent8cb3de455e8fb3b90d9ad3ed256231b2ace0b550
networkd: fix link_up() (#12505)

Fillup IFLA_INET6_ADDR_GEN_MODE while we do link_up.

Fixes the following error:
```
dummy-test: Could not bring up interface: Invalid argument
```

After reading the kernel code when we do a link up
```
net/core/rtnetlink.c
IFLA_AF_SPEC
 af_ops->set_link_af(dev, af);
  inet6_set_link_af
   if (tb[IFLA_INET6_ADDR_GEN_MODE])
             Here it looks for IFLA_INET6_ADDR_GEN_MODE
```
Since link up we didn't filling up that it's failing.

Closes #12504.

(cherry picked from commit 4eb086a38712ea98faf41e075b84555b11b54362)

Gbp-Pq: Name networkd-fix-link_up-12505.patch
src/network/networkd-link.c