dhcpd: No need to use shared-networks

This commit is contained in:
Timo Makinen 2025-06-13 14:00:27 +00:00
parent ea3c05c2b5
commit abedf6102a
4 changed files with 33 additions and 41 deletions

View file

@ -16,7 +16,6 @@ on commit {
); );
} }
shared-network CAMNET {
subnet 172.20.26.0 netmask 255.255.255.0 { subnet 172.20.26.0 netmask 255.255.255.0 {
default-lease-time 86400; default-lease-time 86400;
max-lease-time 604800; max-lease-time 604800;
@ -27,7 +26,6 @@ shared-network CAMNET {
option domain-name-servers 172.20.26.1, 172.20.26.2, 172.20.26.3; option domain-name-servers 172.20.26.1, 172.20.26.2, 172.20.26.3;
use-host-decl-names on; use-host-decl-names on;
} }
}
{% for host in ldap_hosts.results %} {% for host in ldap_hosts.results %}
host {{ host['cn'] }} { host {{ host['cn'] }} {

View file

@ -43,7 +43,6 @@ class "OpenBSD" {
filename "auto_install"; filename "auto_install";
} }
shared-network FOOSH {
subnet 172.20.20.0 netmask 255.255.252.0 { subnet 172.20.20.0 netmask 255.255.252.0 {
default-lease-time 86400; default-lease-time 86400;
max-lease-time 604800; max-lease-time 604800;
@ -55,7 +54,6 @@ shared-network FOOSH {
option domain-name-servers 172.20.20.10, 172.20.20.11, 172.20.20.12; option domain-name-servers 172.20.20.10, 172.20.20.11, 172.20.20.12;
use-host-decl-names on; use-host-decl-names on;
} }
}
{% for hostname in hostvars %} {% for hostname in hostvars %}
{% if hostvars[hostname]['network_interfaces'] is defined %} {% if hostvars[hostname]['network_interfaces'] is defined %}

View file

@ -16,7 +16,6 @@ on commit {
); );
} }
shared-network OOBNET {
subnet 172.20.25.0 netmask 255.255.255.0 { subnet 172.20.25.0 netmask 255.255.255.0 {
default-lease-time 86400; default-lease-time 86400;
max-lease-time 604800; max-lease-time 604800;
@ -27,7 +26,6 @@ shared-network OOBNET {
option domain-name-servers 172.20.25.1, 172.20.25.2, 172.20.25.3; option domain-name-servers 172.20.25.1, 172.20.25.2, 172.20.25.3;
use-host-decl-names on; use-host-decl-names on;
} }
}
{% for host in ldap_hosts.results %} {% for host in ldap_hosts.results %}
host {{ host['cn'] }} { host {{ host['cn'] }} {

View file

@ -16,7 +16,6 @@ on commit {
); );
} }
shared-network PRINTNET {
subnet 172.20.24.0 netmask 255.255.255.0 { subnet 172.20.24.0 netmask 255.255.255.0 {
default-lease-time 86400; default-lease-time 86400;
max-lease-time 604800; max-lease-time 604800;
@ -27,7 +26,6 @@ shared-network PRINTNET {
option domain-name-servers 172.20.24.1, 172.20.24.2, 172.20.24.3; option domain-name-servers 172.20.24.1, 172.20.24.2, 172.20.24.3;
use-host-decl-names on; use-host-decl-names on;
} }
}
{% for host in ldap_hosts.results %} {% for host in ldap_hosts.results %}
host {{ host['cn'] }} { host {{ host['cn'] }} {