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:
parent
4023023c50
commit
b8a41e3fd9
|
@ -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 }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue