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
(cherry picked from commit 5acf51aec3)
This commit is contained in:
Andrew Bonney 2023-01-10 14:56:47 +00:00 committed by Jonathan Rosser
parent 4023023c50
commit b8a41e3fd9
1 changed files with 1 additions and 1 deletions

View File

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