tripleo-ansible/tripleo_ansible/roles/tripleo_network_config/templates/net_config_linux_bridge.j2

18 lines
488 B
Django/Jinja

---
network_config:
- type: linux_bridge
name: {{ neutron_physical_bridge_name }}
addresses:
- ip_netmask: {{ ctlplane_ip }}/{{ ctlplane_subnet_cidr }}
dns_servers: {{ ctlplane_dns_nameservers }}
domain: {{ dns_search_domains }}
members:
- type: interface
name: {{ neutron_public_interface_name }}
# force the MAC address of the bridge to this interface
primary: true
routes:
- ip_netmask: 0.0.0.0/0
next_hop: {{ ctlplane_gateway_ip }}
default: true