Skip to content

Commit

Permalink
fix: use ip lease range based on network cidr (#41)
Browse files Browse the repository at this point in the history
Co-authored-by: Nguyen Van Linh <[email protected]>
  • Loading branch information
linhng98 and linhng98 authored Feb 13, 2022
1 parent 82818b4 commit d10892a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metal/roles/pxe_server/templates/dhcpd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ option architecture-type code 93 = unsigned integer 16;

subnet {{ ansible_default_ipv4.network }} netmask {{ ansible_default_ipv4.netmask }} {
option routers {{ ansible_default_ipv4.gateway }};
range {{ ansible_default_ipv4.gateway | ansible.netcommon.ipmath(1) }} {{ ansible_default_ipv4.broadcast | ansible.netcommon.ipmath(-1) }};
range {{ ansible_default_ipv4.network | ansible.netcommon.ipmath(1) }} {{ ansible_default_ipv4.broadcast | ansible.netcommon.ipmath(-1) }};

class "pxeclients" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
Expand Down

0 comments on commit d10892a

Please sign in to comment.