bundles/systemd-networkd: use some more options for bond interfaces

This commit is contained in:
Franzi 2020-11-15 09:39:44 +01:00
parent 5319cd1e8b
commit d83dbbdd75
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 11 additions and 0 deletions

View file

@ -4,3 +4,12 @@ Kind=bond
[Bond]
Mode=${mode}
% if mode in {'balance-rr', '802.3ad', 'balance-tlp'}:
TransmitHashPolicy=layer3+4
% endif
MIIMonitorSec=1s
LACPTransmitRate=fast
% if mode == '802.3ad':
AdSelect=bandwidth
AdActorSystemPriority=${prio}
% endif

View file

@ -72,6 +72,7 @@ for bond, config in node.metadata.get('systemd-networkd', {}).get('bonds', {}).i
'context': {
'bond': bond,
'mode': config.get('mode', '802.3ad'),
'prio': config.get('priority', '32768'),
},
'needed_by': {
'svc_systemd:systemd-networkd',

View file

@ -43,6 +43,7 @@ nodes['home.nas'] = {
'enp8*',
'enp9*',
},
'priority': '32770',
},
},
'bridges': {