diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-01-28 16:10:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-28 16:10:28 +0100 |
commit | ebe2ab60cc81852bcc005419ed21c55cbdb970aa (patch) | |
tree | 4d14169f2546af47c18b7e14c6fdc9351a228f54 /src/network/networkd-link-bus.c | |
parent | Merge pull request #14633 from poettering/logind-switch-polkit (diff) | |
parent | network: do nothing if link is in pending or linger state on reconfiguring (diff) | |
download | systemd-ebe2ab60cc81852bcc005419ed21c55cbdb970aa.tar.xz systemd-ebe2ab60cc81852bcc005419ed21c55cbdb970aa.zip |
Merge pull request #14611 from yuwata/network-fix-reconfigure
network: fix reconfigure
Diffstat (limited to 'src/network/networkd-link-bus.c')
-rw-r--r-- | src/network/networkd-link-bus.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/networkd-link-bus.c b/src/network/networkd-link-bus.c index 5658fea140..efb72b60e7 100644 --- a/src/network/networkd-link-bus.c +++ b/src/network/networkd-link-bus.c @@ -621,6 +621,12 @@ int bus_link_method_reconfigure(sd_bus_message *message, void *userdata, sd_bus_ if (r < 0) return r; + link_set_state(l, LINK_STATE_INITIALIZED); + r = link_save(l); + if (r < 0) + return r; + link_clean(l); + return sd_bus_reply_method_return(message, NULL); } |