bundles/systemd-networkd: add option to only create a .netdev file for interfaces
This commit is contained in:
parent
be2cdc39e8
commit
b1860b7e01
1 changed files with 15 additions and 14 deletions
|
@ -49,6 +49,7 @@ for interface, config in node.metadata['interfaces'].items():
|
||||||
else:
|
else:
|
||||||
weight = 50
|
weight = 50
|
||||||
|
|
||||||
|
if not config.get('ignore', False):
|
||||||
files['/etc/systemd/network/{}-iface-{}.network'.format(weight, interface)] = {
|
files['/etc/systemd/network/{}-iface-{}.network'.format(weight, interface)] = {
|
||||||
'source': template,
|
'source': template,
|
||||||
'content_type': 'mako',
|
'content_type': 'mako',
|
||||||
|
|
Loading…
Reference in a new issue