router
This commit is contained in:
parent
fcb6c9bd8e
commit
11754a362f
2 changed files with 27 additions and 2 deletions
|
@ -17,8 +17,8 @@ def units(metadata):
|
||||||
'Name': network['interface'],
|
'Name': network['interface'],
|
||||||
},
|
},
|
||||||
'Network': {
|
'Network': {
|
||||||
'DHCP': 'no',
|
'DHCP': network.get('dhcp', 'no'),
|
||||||
'IPv6AcceptRA': 'no',
|
'IPv6AcceptRA': network.get('dhcp', 'no'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
25
nodes/home.router.py
Normal file
25
nodes/home.router.py
Normal 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',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in a new issue