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
49
49
- ` libvirt_vm_clock_offset ` . If defined the instances clock offset is set to
50
50
the provided value. When undefined sync is set to ` localtime ` .
51
51
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
+
52
56
- ` libvirt_vms ` : list of VMs to be created/destroyed. Each one may have the
53
57
following attributes:
54
58
@@ -110,7 +114,9 @@ Role Variables
110
114
- ` mode ` : options include ` vepa ` , ` bridge ` , ` private ` and
111
115
` passthrough ` . See ` man virsh ` for more details. Default is
112
116
` 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 ` .
114
120
- ` console_log_enabled ` : if ` true ` , log console output to a file at the
115
121
path specified by ` console_log_path ` , ** instead of** to a PTY. If
116
122
` 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:
40
40
# configuration use <clock offset="specified offset">
41
41
libvirt_vm_clock_offset : False
42
42
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
+
43
47
# A list of specifications of VMs to be created.
44
48
# For backwards compatibility, libvirt_vms defaults to a singleton list using
45
49
# the values of the deprecated variables below.
Original file line number Diff line number Diff line change 47
47
{% endfor %}
48
48
{% for interface in interfaces %}
49
49
{% 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 %} >
51
51
<source dev =' {{ interface.source.dev }}' mode =' {{ interface.source.mode | default(' vepa ' ) }}' />
52
52
{% elif interface .type is defined and interface .type == 'bridge' %}
53
53
<interface type =' bridge' >
You can’t perform that action at this time.
0 commit comments