Skip to content

Commit 3cc1b51

Browse files
authored
Merge pull request #57 from stackhpc/fix-multicast
Fix receiving multicast traffic
2 parents 1c0f94f + e7b005c commit 3cc1b51

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ Role Variables
4949
- `libvirt_vm_clock_offset`. If defined the instances clock offset is set to
5050
the provided value. When undefined sync is set to `localtime`.
5151

52+
- `libvirt_vm_trust_guest_rx_filters`: Whether to trust guest receive filters.
53+
This gets mapped to the `trustGuestRxFilters` attribute of VM interfaces.
54+
Default is `false`
55+
5256
- `libvirt_vms`: list of VMs to be created/destroyed. Each one may have the
5357
following attributes:
5458

@@ -110,7 +114,9 @@ Role Variables
110114
- `mode`: options include `vepa`, `bridge`, `private` and
111115
`passthrough`. See `man virsh` for more details. Default is
112116
`vepa`.
113-
117+
- `trust_guest_rx_filters`: Whether to trust guest receive filters.
118+
This gets mapped to the `trustGuestRxFilters` attribute of VM
119+
interfaces. Default is `libvirt_vm_trust_guest_rx_filters`.
114120
- `console_log_enabled`: if `true`, log console output to a file at the
115121
path specified by `console_log_path`, **instead of** to a PTY. If
116122
`false`, direct terminal output to a PTY at serial port 0. Default is

defaults/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ libvirt_vm_emulator:
4040
# configuration use <clock offset="specified offset">
4141
libvirt_vm_clock_offset: False
4242

43+
# Default value for whether to trust guest receive filters. This gets mapped to
44+
# the trustGuestRxFilters attribute of VM interfaces.
45+
libvirt_vm_trust_guest_rx_filters: false
46+
4347
# A list of specifications of VMs to be created.
4448
# For backwards compatibility, libvirt_vms defaults to a singleton list using
4549
# the values of the deprecated variables below.

templates/vm.xml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
{% endfor %}
4848
{% for interface in interfaces %}
4949
{% if interface.type is defined and interface.type == 'direct' %}
50-
<interface type='direct'>
50+
<interface type='direct' {% if interface.trust_guest_rx_filters | default(libvirt_vm_trust_guest_rx_filters) | bool %}trustGuestRxFilters='yes'{% endif %}>
5151
<source dev='{{ interface.source.dev }}' mode='{{ interface.source.mode | default('vepa') }}'/>
5252
{% elif interface.type is defined and interface.type == 'bridge' %}
5353
<interface type='bridge'>

0 commit comments

Comments
 (0)