Skip to content

Commit 78e50e4

Browse files
authored
Merge pull request #67 from gprocunier/tunable-network-driver
Tunable network driver
2 parents 182e154 + 112d216 commit 78e50e4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ Role Variables
141141
- `trust_guest_rx_filters`: Whether to trust guest receive filters.
142142
This gets mapped to the `trustGuestRxFilters` attribute of VM
143143
interfaces. Default is `libvirt_vm_trust_guest_rx_filters`.
144+
- `model`: The name of the interface model. Eg. `e1000` or `ne2k_pci`, if undefined
145+
it defaults to `virtio`.
144146
- `console_log_enabled`: if `true`, log console output to a file at the
145147
path specified by `console_log_path`, **instead of** to a PTY. If
146148
`false`, direct terminal output to a PTY at serial port 0. Default is

templates/vm.xml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@
7979
{% endif %}
8080
{# if the network configuration is invalid this can still appear in the xml #}
8181
{# (say you enter 'bond' instead of 'bridge' in your variables) #}
82+
{% if interface.model is defined %}
83+
<model type='{{ interface.model }}'/>
84+
{% else %}
8285
<model type='virtio'/>
86+
{% endif %}
8387
</interface>
8488
{% endfor %}
8589
{% if console_log_enabled | bool %}

0 commit comments

Comments
 (0)