]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: drop duplicated check 29121/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Sep 2023 18:26:27 +0000 (03:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Sep 2023 21:41:37 +0000 (06:41 +0900)
The same check is in network_adjust_dhcp_server().

src/network/networkd-network.c

index d8938778fbfbdc3d3c4f3ba28afab15ac2e42f3c..7feb178c80c12cfb600c3202350c34a29750d1f6 100644 (file)
@@ -181,11 +181,6 @@ int network_verify(Network *network) {
                                     network->filename);
                         network->link_local = ADDRESS_FAMILY_NO;
                 }
-                if (network->dhcp_server) {
-                        log_warning("%s: Cannot enable DHCPServer= when Bond= is specified, disabling DHCPServer=.",
-                                    network->filename);
-                        network->dhcp_server = false;
-                }
                 if (!ordered_hashmap_isempty(network->addresses_by_section))
                         log_warning("%s: Cannot set addresses when Bond= is specified, ignoring addresses.",
                                     network->filename);