dn42-scripts/templates/dhcp.conf.erb

13 lines
242 B
Plaintext
Raw Normal View History

2015-01-13 07:19:32 +00:00
<% 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 -%>