26 lines
528 B
Django/Jinja
26 lines
528 B
Django/Jinja
[Match]
|
|
Name={{ item.name }}
|
|
|
|
[Network]
|
|
Address={{ hostvars[inventory_hostname]['addresses'][item.name] }}/22
|
|
DNS={{ item.gateway }}
|
|
Domains={{ item.search_domain }}
|
|
IPv6AcceptRA=false
|
|
IPv6SendRA=false
|
|
|
|
[link]
|
|
MTUBytes= {{ item.mtu }}
|
|
|
|
[Route]
|
|
Destination=0.0.0.0/0
|
|
Gateway= {{ item.gateway }}
|
|
Table= {{ item.table_id }}
|
|
|
|
[Route]
|
|
Destination={{ item.subnet }}
|
|
Table= {{ item.table_id }}
|
|
|
|
[RoutingPolicyRule]
|
|
From={{ hostvars[inventory_hostname]['addresses'][item.name] }}
|
|
Table={{ item.table_name }}
|
|
Priority={{ item.priority }} |