File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,10 @@ Role Variables
143
143
interfaces. Default is ` libvirt_vm_trust_guest_rx_filters ` .
144
144
- ` model ` : The name of the interface model. Eg. ` e1000 ` or ` ne2k_pci ` , if undefined
145
145
it defaults to ` virtio ` .
146
+ - ` alias ` : An optional interface alias. This can be used to tie specific network
147
+ configuration to persistent network devices via name. The user defined alias is
148
+ always prefixed with ` ua- ` to be compliant (aliases without ` ua- ` are ignored by libvirt.
149
+ If undefined it defaults to libvirt managed ` vnetX ` .
146
150
- ` console_log_enabled ` : if ` true ` , log console output to a file at the
147
151
path specified by ` console_log_path ` , ** instead of** to a PTY. If
148
152
` false ` , direct terminal output to a PTY at serial port 0. Default is
Original file line number Diff line number Diff line change 84
84
{% else %}
85
85
<model type =' virtio' />
86
86
{% endif %}
87
+ {% if interface .alias is defined %}
88
+ <alias name =' ua-{{ interface.alias }}' />
89
+ {% endif %}
87
90
</interface >
88
91
{% endfor %}
89
92
{% if console_log_enabled | bool %}
You can’t perform that action at this time.
0 commit comments