# libvirt_network: # name: provision-network # spec: # forward: # mode: nat # nat: # port: # - start: 1024 # end: 65535 # bridge: # name: "prov-net-br" # stp: 'on' # delay: '0' # ip: # address: "172.22.0.1" # netmask: "255.255.255.0" # libvirt_network: # name: "{{ bm_net_name }}" # persistent: true # autostart: true # spec: # forward: # mode: nat # nat: # port: # - start: 1024 # end: 65535 # bridge: # name: "{{ bm_net_name }}" # stp: 'on' # delay: '0' # domain: # name: 'tests.baremetal.net' # localOnly: 'yes' # dns: # - forwarder: # domain: 'apps.tests.baremetal.net' # addr: '127.0.0.1' # - forwarder: # domain: 'services.tests.baremetal.net' # addr: '127.0.0.1' # ip: "{{ bm_net_0_ip_cfg }}" libvirt_network_template_default: | {{ net_yaml.name }} {% if net_yaml.forward is defined %} {% if net_yaml.forward.mode is defined %} {% else %} {% endif %} {% if net_yaml.forward.nat is defined %} {% if net_yaml.forward.nat.port is defined %} {% for port in net_yaml.forward.nat.port %} {% endfor %} {% endif %} {% endif %} {% endif %} {% if net_yaml.bridge is defined %} {% endif %} {% if net_yaml.mac is defined %} {% endif %} {% if net_yaml.domain is defined %} {% endif %} {% if net_yaml.dns is defined %} {% if net_yaml.dns | list %} {% for dns_item in net_yaml.dns %} {% if dns_item.forwarder is defined %} {% endif %} {% endfor %} {% endif %} {% endif %} {% if net_yaml.ip is defined %} {% if net_yaml.ip.dhcp is defined %} {% for dhcp_item in net_yaml.ip.dhcp %} {% if dhcp_item.range is defined %} {% endif %} {% if dhcp_item.host is defined %} {% endif %} {% endfor %} {% endif %} {% endif %}