]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
network: recreate link if its interface name is changed (#8795)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 26 Apr 2018 19:05:32 +0000 (04:05 +0900)
committerLennart Poettering <lennart@poettering.net>
Thu, 26 Apr 2018 19:05:32 +0000 (21:05 +0200)
commit587c45866555b10d1fde7458ee83708a0cb08a07
tree4aa5b94345db12aba1dfe5bf392d7558403bb854
parentcd81a8fc82c6fd175a02df291f5e4a5f78c537b8
network: recreate link if its interface name is changed (#8795)

If an interface name is changed, then the link state, especially
managed or not, may need to be updated, as its corresponding
.link or .network files may be different. So, let's once drop
the link and recreate a new link object.

Fixes #8794.
src/network/networkd-link.c