update router

This commit is contained in:
CroneKorkN 2025-08-09 23:08:06 +02:00
parent b8389352ec
commit 70b17657a1
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
2 changed files with 3 additions and 3 deletions

View file

@ -52,13 +52,14 @@ def subnets(metadata):
if 'mac' in network_conf
)
for network_name, network_conf in metadata.get('network').items():
for id, (network_name, network_conf) in enumerate(sorted(metadata.get('network').items())):
dhcp_server_config = network_conf.get('dhcp_server_config', None)
if dhcp_server_config:
_network = ip_network(dhcp_server_config['subnet'])
subnet4.add(hashable({
'id': id + 1,
'subnet': dhcp_server_config['subnet'],
'pools': [
{

View file

@ -2,7 +2,7 @@
'hostname': '10.0.0.1',
'groups': [
'autologin',
'debian-12',
'debian-13',
'hardware',
'home',
'monitored',
@ -81,7 +81,6 @@
's2s': {
'htz.mails': {
'allowed_ips': [
'10.0.10.0/24',
'10.0.10.0/24',
#'192.168.179.0/24', # while raspi at home
'10.0.227.0/24', # mseibert.freescout