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>
Thu, 18 Jul 2019 17:38:23 +0000 (18:38 +0100)
commit1daabf2ff3642e5dc304f46fdc4a3d100d41e710
tree1748c2de094132e9bf6faa8982fdc973c5c13525
parent869a3505fc2a27d219e75e7b81a29708d1f10ff5
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