From 9bcd07e1076e13b6570c7fe58394f9eb25484d29 Mon Sep 17 00:00:00 2001 From: Jean-David Silberzahn Date: Sat, 16 Jun 2018 22:44:34 +0700 Subject: [PATCH] Correct systemd-networkd setup for static routes Change Source into Destination to have defined static route applying on the right CIDR and not 0.0.0.0 Change-Id: Id51ece1c72474de07dbf6cf740ecf4f93b2d1adf Closes-Bug: #1777251 --- templates/container_network.network.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/container_network.network.j2 b/templates/container_network.network.j2 index 65ca7d5..4a28897 100644 --- a/templates/container_network.network.j2 +++ b/templates/container_network.network.j2 @@ -14,7 +14,7 @@ RouteMetric=20 {% for route in item.value.static_routes | default([]) %} [Route] -Source={{ route['cidr'] }} +Destination={{ route['cidr'] }} Gateway={{ route['gateway'] }} Metric={{ 20 + loop.index }}