Skip to content

Commit e94e8f1

Browse files
authored
Merge pull request #56 from IncredibleRichie/master
added "open" to network teplate
2 parents f9d6beb + 3f6dfab commit e94e8f1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ should be a dict containing the following items:
3535
`libvirt_host_networks` is a list of networks to define and start. Each item
3636
should be a dict containing the following items:
3737
- `name` The name of the network.
38-
- `mode` The forwarding mode of the network, `bridge`, `route` and `nat` are
39-
supported.
38+
- `mode` The forwarding mode of the network, `bridge`, `route`, `open` and `nat` are
39+
supported. Leave empty for a isolated network mode.
4040
- `bridge` The name of the bridge interface for this network.
41-
- `ip` IP address of the virtual bridge, mandatory for `route` and `nat` mode.
42-
- `netmask` Netmask of the virtual bridge, mandatory for `route` and `nat` mode.
43-
- `domain` DNS domain name for `route` and `nat` mode, default to the network
41+
- `ip` IP address of the virtual bridge, mandatory for `route`, `open` and `nat` mode.
42+
- `netmask` Netmask of the virtual bridge, mandatory for `route`, `open` and `nat` mode.
43+
- `domain` DNS domain name for `route`, `open` and `nat` mode, default to the network
4444
name (optional).
45-
- `dhcp_start` First IP of the DHCP range in `route` or `nat` mode (optional).
46-
- `dhcp_end` Last IP of the DHCP range in `route` or `nat` mode (optional).
45+
- `dhcp_start` First IP of the DHCP range in `route` , `open` or `nat` mode (optional).
46+
- `dhcp_end` Last IP of the DHCP range in `route`, `open` or `nat` mode (optional).
4747
- `routes` Optional list of additionals routes defined as following:
4848
- `address` Address of the route, required.
4949
- `prefix` Prefix of the route, required.

templates/network.xml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<name>{{ item.name }}</name>
33
{% if item.mode is defined %}<forward mode='{{ item.mode }}'/>{% endif %}
44
<bridge name='{{ item.bridge }}'/>
5-
{% if item.mode is not defined or item.mode in ['route', 'nat'] %}
5+
{% if item.mode is not defined or item.mode in ['route', 'nat', 'open'] %}
66
<domain name='{{ item.domain|default(item.name) }}'/>
77
<ip address='{{ item.ip }}' netmask='{{ item.netmask }}'>
88
{% if item.dhcp_start is defined and item.dhcp_end is defined %}

0 commit comments

Comments
 (0)