debian 13 #25
2 changed files with 3 additions and 3 deletions
|
@ -52,13 +52,14 @@ def subnets(metadata):
|
||||||
if 'mac' in network_conf
|
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)
|
dhcp_server_config = network_conf.get('dhcp_server_config', None)
|
||||||
|
|
||||||
if dhcp_server_config:
|
if dhcp_server_config:
|
||||||
_network = ip_network(dhcp_server_config['subnet'])
|
_network = ip_network(dhcp_server_config['subnet'])
|
||||||
|
|
||||||
subnet4.add(hashable({
|
subnet4.add(hashable({
|
||||||
|
'id': id + 1,
|
||||||
'subnet': dhcp_server_config['subnet'],
|
'subnet': dhcp_server_config['subnet'],
|
||||||
'pools': [
|
'pools': [
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
'hostname': '10.0.0.1',
|
'hostname': '10.0.0.1',
|
||||||
'groups': [
|
'groups': [
|
||||||
'autologin',
|
'autologin',
|
||||||
'debian-12',
|
'debian-13',
|
||||||
'hardware',
|
'hardware',
|
||||||
'home',
|
'home',
|
||||||
'monitored',
|
'monitored',
|
||||||
|
@ -81,7 +81,6 @@
|
||||||
's2s': {
|
's2s': {
|
||||||
'htz.mails': {
|
'htz.mails': {
|
||||||
'allowed_ips': [
|
'allowed_ips': [
|
||||||
'10.0.10.0/24',
|
|
||||||
'10.0.10.0/24',
|
'10.0.10.0/24',
|
||||||
#'192.168.179.0/24', # while raspi at home
|
#'192.168.179.0/24', # while raspi at home
|
||||||
'10.0.227.0/24', # mseibert.freescout
|
'10.0.227.0/24', # mseibert.freescout
|
||||||
|
|
Loading…
Reference in a new issue