Revision 9f2c9a01
Added by Vitaly Pyslar about 1 year ago
app/views/unattended/provisioning_templates/snippet/preseed_netplan_generic_interface.erb | ||
---|---|---|
- <%= @interface.ip %>/<%= @subnet.cidr %>
|
||
<%- end -%>
|
||
<%- if static_v6 -%>
|
||
- <%= @interface.ip6 %>/<%= @subnet6.cidr %>
|
||
- "<%= @interface.ip6 %>/<%= @subnet6.cidr %>"
|
||
<%- end -%>
|
||
<%- if static_v4 && @subnet.gateway.present? -%>
|
||
gateway4: <%= @subnet.gateway %>
|
||
<%- end -%>
|
||
<%- if static_v6 && @subnet6.gateway.present? -%>
|
||
gateway6: <%= @subnet6.gateway %>
|
||
gateway6: "<%= @subnet6.gateway %>"
|
||
<%- end -%>
|
||
<%- if @interface.primary -%>
|
||
nameservers:
|
||
... | ... | |
<%- end -%>
|
||
<%- if static_v6 -%>
|
||
<%- @subnet6.dns_servers.each do |dns6_server| -%>
|
||
- <%= dns6_server %>
|
||
- "<%= dns6_server %>"
|
||
<%- end -%>
|
||
<%- end -%>
|
||
<%- end -%>
|
Also available in: Unified diff
Fixes #36441 - quote ipv6 addresses