openstack-ansible-lxc_hosts/templates/lxc-networkd-bridge.network.j2

11 lines
249 B
Django/Jinja

# {{ ansible_managed }}
[Match]
Name={{ lxc_net_bridge }}
[Network]
Address={{ (lxc_net_address ~ '/' ~ lxc_net_netmask) | ipaddr('cidr') }}
{% if lxc_net_gateway is not none %}
Gateway={{ lxc_net_gateway }}
{% endif %}
ConfigureWithoutCarrier=yes