This commit is contained in:
cronekorkn 2023-04-24 22:36:48 +02:00
parent fcb6c9bd8e
commit 11754a362f
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
2 changed files with 27 additions and 2 deletions

View file

@ -17,8 +17,8 @@ def units(metadata):
'Name': network['interface'],
},
'Network': {
'DHCP': 'no',
'IPv6AcceptRA': 'no',
'DHCP': network.get('dhcp', 'no'),
'IPv6AcceptRA': network.get('dhcp', 'no'),
}
}

25
nodes/home.router.py Normal file
View file

@ -0,0 +1,25 @@
{
'hostname': '10.0.0.119',
'groups': [
'autologin',
'debian-11',
'hardware',
'home',
'monitored',
],
'metadata': {
'id': '1d6a43e5-858c-42f9-9c40-ab63d61c787c',
'network': {
'internal': {
'interface': 'eno1',
'ipv4': '10.0.0.119/24',
'gateway4': '10.0.0.1',
},
'exernal': {
'interface': 'enx00e04c00135b',
'mac': '00:e0:4c:00:13:5b',
'dhcp': 'yes',
},
},
},
}