]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: also check route prefixes are configured
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 29 Sep 2020 20:56:05 +0000 (05:56 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 6 Oct 2020 17:44:42 +0000 (02:44 +0900)
src/network/networkd-network.c

index 348be6ad0bf9161958b724b44147729a9d2bb5fc..a89a8259a28f63071c7a8cb9d76fc79540bfd9a2 100644 (file)
@@ -846,6 +846,9 @@ bool network_has_static_ipv6_configurations(Network *network) {
         if (!hashmap_isempty(network->prefixes_by_section))
                 return true;
 
+        if (!hashmap_isempty(network->route_prefixes_by_section))
+                return true;
+
         return false;
 }