Skip to content

Tunable network driver #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ Role Variables
- `trust_guest_rx_filters`: Whether to trust guest receive filters.
This gets mapped to the `trustGuestRxFilters` attribute of VM
interfaces. Default is `libvirt_vm_trust_guest_rx_filters`.
- `model`: The name of the interface model. Eg. `e1000` or `ne2k_pci`, if undefined
it defaults to `virtio`.
- `console_log_enabled`: if `true`, log console output to a file at the
path specified by `console_log_path`, **instead of** to a PTY. If
`false`, direct terminal output to a PTY at serial port 0. Default is
Expand Down
4 changes: 4 additions & 0 deletions templates/vm.xml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@
{% endif %}
{# if the network configuration is invalid this can still appear in the xml #}
{# (say you enter 'bond' instead of 'bridge' in your variables) #}
{% if interface.model is defined %}
<model type='{{ interface.model }}'/>
{% else %}
<model type='virtio'/>
{% endif %}
</interface>
{% endfor %}
{% if console_log_enabled | bool %}
Expand Down