# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # 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 %}