mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-25 22:18:53 +07:00
fix: use ip lease range based on network cidr (#41)
Co-authored-by: Nguyen Van Linh <linhnguyen.workspace@gmail.com>
This commit is contained in:
parent
82818b4695
commit
d10892a326
@ -7,7 +7,7 @@ option architecture-type code 93 = unsigned integer 16;
|
|||||||
|
|
||||||
subnet {{ ansible_default_ipv4.network }} netmask {{ ansible_default_ipv4.netmask }} {
|
subnet {{ ansible_default_ipv4.network }} netmask {{ ansible_default_ipv4.netmask }} {
|
||||||
option routers {{ ansible_default_ipv4.gateway }};
|
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" {
|
class "pxeclients" {
|
||||||
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
|
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
|
||||||
|
Loading…
Reference in New Issue
Block a user