ansible-on-prem/roles/server/network/templates/auxiliary-interface.network.j2

26 lines
530 B
Django/Jinja

[Match]
Name={{ item.ifname }}
[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 }}