Merge "[odl] Settle the broken pkg->config dependency"
[fuel.git] / mcp / scripts / virsh_net / net_mcpcontrol.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 {#- conf.MCPCONTROL_NET & co are mandatory, defaults are set via globals.sh #}
10 {%- set net_mcpcontrol = [conf.MCPCONTROL_NET, conf.MCPCONTROL_PREFIX] | join("/") %}
11 <network>
12   <name>mcpcontrol</name>
13   <bridge name="mcpcontrol"/>
14   <forward mode="nat"/>
15   <ip address="{{ net_mcpcontrol | ipnet_hostaddr(1) }}" netmask="{{ net_mcpcontrol | ipnet_netmask }}">
16     <dhcp>
17       <range start="{{ net_mcpcontrol | ipnet_hostaddr(3) }}" end="{{ net_mcpcontrol | ipnet_hostmax }}"/>
18     </dhcp>
19   </ip>
20 </network>