30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
From 8e6b8db540299209f28505e7578a6d0ffeba4c38 Mon Sep 17 00:00:00 2001
|
|
From: Hangbin Liu <haliu@redhat.com>
|
|
Date: Fri, 24 Mar 2023 10:51:25 +0800
|
|
Subject: [PATCH 10/15] utils/team2bond: add lacp_active support
|
|
|
|
Signed-off-by: Hangbin Liu <haliu@redhat.com>
|
|
---
|
|
utils/team2bond | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/utils/team2bond b/utils/team2bond
|
|
index 111b83b..7fc4a48 100755
|
|
--- a/utils/team2bond
|
|
+++ b/utils/team2bond
|
|
@@ -63,7 +63,10 @@ def convert_runner_opts(runner_opts):
|
|
elif runner_opts['name'] == 'lacp':
|
|
bond_opts = "mode=802.3ad"
|
|
if 'active' in runner_opts:
|
|
- print("# Warn: option runner.active: %r is not supported by bonding" % runner_opts['active'])
|
|
+ if runner_opts['active']:
|
|
+ bond_opts += ",lacp_active=1"
|
|
+ else:
|
|
+ bond_opts += ",lacp_active=0"
|
|
if 'fast_rate' in runner_opts:
|
|
if runner_opts['fast_rate']:
|
|
bond_opts += ",lacp_rate=1"
|
|
--
|
|
2.38.1
|
|
|