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:
parent
4d8060b61d
commit
5acf51aec3
@ -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 }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user