aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/scripts/virsh_net/net_mcpcontrol.xml.j2
blob: 46798a3c667859192468bb8f9ad8430ab9452627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!--
 Copyright (c) 2017 Mirantis Inc., Enea AB and others.

 All rights reserved. This program and the accompanying materials
 are made available under the terms of the Apache License, Version 2.0
 which accompanies this distribution, and is available at
 http://www.apache.org/licenses/LICENSE-2.0
-->
{#- conf.MCPCONTROL_NET & co are mandatory, defaults are set via globals.sh #}
{%- set net_mcpcontrol = [conf.MCPCONTROL_NET, conf.MCPCONTROL_PREFIX] | join("/") %}
<network>
  <name>mcpcontrol</name>
  <bridge name="mcpcontrol"/>
  <forward mode="nat"/>
  <ip address="{{ net_mcpcontrol | ipnet_hostaddr(1) }}" netmask="{{ net_mcpcontrol | ipnet_netmask }}">
    <dhcp>
      <range start="{{ net_mcpcontrol | ipnet_hostaddr(3) }}" end="{{ net_mcpcontrol | ipnet_hostmax }}"/>
    </dhcp>
  </ip>
</network>