bundles/systemd-networkd: add dummy interfaces
This commit is contained in:
parent
996ef6e115
commit
fe44417b14
2 changed files with 18 additions and 0 deletions
3
bundles/systemd-networkd/files/template-dummy.netdev
Normal file
3
bundles/systemd-networkd/files/template-dummy.netdev
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[NetDev]
|
||||||
|
Name=${name}
|
||||||
|
Kind=dummy
|
|
@ -63,6 +63,21 @@ for interface, config in node.metadata['interfaces'].items():
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
weight = 61
|
weight = 61
|
||||||
|
elif interface.startswith('dummy'):
|
||||||
|
files[f'/etc/systemd/network/60-iface-{interface}.netdev'] = {
|
||||||
|
'source': 'template-dummy.netdev',
|
||||||
|
'content_type': 'mako',
|
||||||
|
'context': {
|
||||||
|
'name': interface,
|
||||||
|
},
|
||||||
|
'needed_by': {
|
||||||
|
'svc_systemd:systemd-networkd',
|
||||||
|
},
|
||||||
|
'triggers': {
|
||||||
|
'svc_systemd:systemd-networkd:restart',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
weight = 61
|
||||||
else:
|
else:
|
||||||
weight = 50
|
weight = 50
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue