Skip to content

Commit 344e03a

Browse files
committed
facts.inventory: add DNS search domain to all DHCP pools
1 parent 260c9d5 commit 344e03a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

facts/inventory.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,10 @@ def generatekeaconfig(servers, aps, vlans, outputdir):
568568
"pools": [
569569
{"pool": vlan["ipv4dhcpStart"] + " - " + vlan["ipv4dhcpEnd"]}
570570
],
571-
"option-data": [{"name": "routers", "data": str(vlan["ipv4router"])}],
571+
"option-data": [
572+
{"name": "routers", "data": str(vlan["ipv4router"])},
573+
{"name": "domain-search", "data": "scale.lan"},
574+
],
572575
}
573576
# lower lease times for the APs
574577
if vlan["name"] in ["cfInfra", "exInfra"]:
@@ -603,6 +606,7 @@ def generatekeaconfig(servers, aps, vlans, outputdir):
603606
"pools": [
604607
{"pool": vlan["ipv6dhcpStart"] + " - " + vlan["ipv6dhcpEnd"]}
605608
],
609+
"option-data": [{"name": "domain-search", "data": "scale.lan"}],
606610
}
607611
# lower lease times for the APs
608612
if vlan["name"] in ["cfInfra", "exInfra"]:

0 commit comments

Comments
 (0)