bundles/systemd-networkd: fix vlan support for bridges and bonds
This commit is contained in:
parent
913f2cde8f
commit
02146a81d6
3 changed files with 10 additions and 0 deletions
|
@ -3,3 +3,7 @@ Name=${' '.join(sorted(match))}
|
||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
Bond=${bond}
|
Bond=${bond}
|
||||||
|
|
||||||
|
% for vlan in sorted(vlans):
|
||||||
|
VLAN=${bond}.${vlan}
|
||||||
|
% endfor
|
||||||
|
|
|
@ -3,3 +3,7 @@ Name=${' '.join(sorted(match))}
|
||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
Bridge=${bridge}
|
Bridge=${bridge}
|
||||||
|
|
||||||
|
% for vlan in sorted(vlans):
|
||||||
|
VLAN=${bridge}.${vlan}
|
||||||
|
% endfor
|
||||||
|
|
|
@ -89,6 +89,7 @@ for bond, config in node.metadata.get('systemd-networkd/bonds', {}).items():
|
||||||
'context': {
|
'context': {
|
||||||
'bond': bond,
|
'bond': bond,
|
||||||
'match': config['match'],
|
'match': config['match'],
|
||||||
|
'vlans': node.metadata.get(f'interfaces/{bond}/vlans', set()),
|
||||||
},
|
},
|
||||||
'needed_by': {
|
'needed_by': {
|
||||||
'svc_systemd:systemd-networkd',
|
'svc_systemd:systemd-networkd',
|
||||||
|
@ -118,6 +119,7 @@ for brname, config in node.metadata.get('systemd-networkd/bridges', {}).items():
|
||||||
'context': {
|
'context': {
|
||||||
'bridge': brname,
|
'bridge': brname,
|
||||||
'match': config['match'],
|
'match': config['match'],
|
||||||
|
'vlans': node.metadata.get(f'interfaces/{brname}/vlans', set()),
|
||||||
},
|
},
|
||||||
'needed_by': {
|
'needed_by': {
|
||||||
'svc_systemd:systemd-networkd',
|
'svc_systemd:systemd-networkd',
|
||||||
|
|
Loading…
Reference in a new issue