13 lines
242 B
Plaintext
13 lines
242 B
Plaintext
<% leases.each do |lease| -%>
|
|
|
|
host <%= lease.name %> {
|
|
hardware ethernet <%= lease.mac %>;
|
|
<% if lease.ipv4 -%>
|
|
fixed-address <%= lease.ipv4 %>;
|
|
<% end -%>
|
|
<% if lease.ipv6 -%>
|
|
fixed-address6 <%= lease.ipv6 %>;
|
|
<% end -%>
|
|
}
|
|
<% end -%>
|