From: Yu Watanabe Date: Thu, 12 May 2022 19:43:37 +0000 (+0900) Subject: network: do not update interface group by default X-Git-Tag: v251~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cee683394328ae271348fad93c3474b5784bcc78;p=thirdparty%2Fsystemd.git network: do not update interface group by default This fixes a minor bug introduced by 10af8bb24b39a815079f6bf31b449c6e5aaa2adf. Before the commit, the interface group was set only when Group= is explicitly specified, otherwise the interface group was kept. However, after the commit, we need to specify Group= with an empty string to keep the current interface group. --- diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index c0b8e3893c0..39ea4eddd08 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -383,6 +383,7 @@ int network_load_one(Manager *manager, OrderedHashmap **networks, const char *fi .required_for_online = -1, .required_operstate_for_online = LINK_OPERSTATE_RANGE_DEFAULT, .activation_policy = _ACTIVATION_POLICY_INVALID, + .group = -1, .arp = -1, .multicast = -1, .allmulticast = -1,