Fix static routes to use Destination rather than Source key

The current template results in a default route being added to the
routing table rather than a route specific to the destination
requested.

Change-Id: I0ef53631989ea2dc12d2540edeed95d0a466353b
This commit is contained in:
Andrew Bonney 2023-01-10 14:56:47 +00:00
parent 4d8060b61d
commit 5acf51aec3

View File

@ -12,7 +12,7 @@ RouteMetric=20
{% for route in item.1.static_routes | default([]) %} {% for route in item.1.static_routes | default([]) %}
[Route] [Route]
Source={{ route['cidr'] }} Destination={{ route['cidr'] }}
Gateway={{ route['gateway'] }} Gateway={{ route['gateway'] }}
Metric={{ 20 + loop.index }} Metric={{ 20 + loop.index }}