File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ libvirt_vm_emulator:
4040# configuration use <clock offset="specified offset">
4141libvirt_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.
Original file line number Diff line number Diff line change 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' >
You can’t perform that action at this time.
0 commit comments