[baremetal] cleanup: rm cloud-init iface config
[fuel.git] / mcp / scripts / virsh_net / net_public.xml.j2
1 <!--
2  Copyright (c) 2017 Mirantis Inc., Enea AB and others.
3
4  All rights reserved. This program and the accompanying materials
5  are made available under the terms of the Apache License, Version 2.0
6  which accompanies this distribution, and is available at
7  http://www.apache.org/licenses/LICENSE-2.0
8 -->
9 {%- if conf.idf.net_config.public is defined %}
10   {%- set public_network = conf.idf.net_config.public.network %}
11   {%- set public_prefix = conf.idf.net_config.public.mask %}
12 {%- else %}
13   {%- set public_network = '10.16.0.0' %}
14   {%- set public_prefix = '24' %}
15 {%- endif %}
16 <network>
17   <name>public</name>
18   <bridge name="public"/>
19   <forward mode="nat"/>
20   <ip address="{{ public_network | ipaddr_index(1) }}" netmask="{{ public_prefix | netmask }}"/>
21 </network>