bundles/systemd-networkd: use some more options for bond interfaces
This commit is contained in:
parent
5319cd1e8b
commit
d83dbbdd75
3 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -43,6 +43,7 @@ nodes['home.nas'] = {
|
|||
'enp8*',
|
||||
'enp9*',
|
||||
},
|
||||
'priority': '32770',
|
||||
},
|
||||
},
|
||||
'bridges': {
|
||||
|
|
Loading…
Reference in a new issue