summaryrefslogtreecommitdiff
path: root/src/network/networkd-route.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/networkd-route.c')
-rw-r--r--src/network/networkd-route.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c
index 1166a99a79..1ea6237cc7 100644
--- a/src/network/networkd-route.c
+++ b/src/network/networkd-route.c
@@ -142,6 +142,12 @@ int config_parse_gateway(const char *unit,
assert(rvalue);
assert(data);
+ if (streq(section, "Network")) {
+ /* we are not in an Route section, so treat
+ * this as the special '0' section */
+ section_line = 0;
+ }
+
r = route_new(network, section_line, &n);
if (r < 0)
return r;