]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: do not update interface group by default
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 12 May 2022 19:43:37 +0000 (04:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 14 May 2022 23:24:13 +0000 (08:24 +0900)
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.

src/network/networkd-network.c

index c0b8e3893c00d300cdaead02aa39d6a40ab1af30..39ea4eddd0893fd5e0e53a018912bd7c953fab3f 100644 (file)
@@ -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,