]> git.proxmox.com Git - ifupdown2.git/blob - debian/patches/pve/0008-lacp-bond-remove-bond-min-links-0-warning.patch
089b3155c421d4f01c152fd218e5932dd9d1429a
[ifupdown2.git] / debian / patches / pve / 0008-lacp-bond-remove-bond-min-links-0-warning.patch
1 From df1e76e6bcdca3044ee9d53ddb62a71bedf4b8a6 Mon Sep 17 00:00:00 2001
2 From: Alexandre Derumier <aderumier@odiso.com>
3 Date: Tue, 16 May 2023 00:33:36 +0200
4 Subject: [PATCH] lacp bond: remove bond-min-links=0 warning
5
6 This is only cumulus specific
7
8 Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 ---
10 ifupdown2/addons/bond.py | 7 -------
11 1 file changed, 7 deletions(-)
12
13 diff --git a/ifupdown2/addons/bond.py b/ifupdown2/addons/bond.py
14 index 74d2cab..4a555cc 100644
15 --- a/ifupdown2/addons/bond.py
16 +++ b/ifupdown2/addons/bond.py
17 @@ -610,13 +610,6 @@ class bond(Addon, moduleBase):
18 # if we need to reset the mode to system default
19 ifla_info_data[Link.IFLA_BOND_MODE] = ifla_bond_mode
20
21 - if ifla_bond_mode == 4: # 802.3ad
22 - min_links = ifla_info_data.get(Link.IFLA_BOND_MIN_LINKS)
23 - if min_links is None:
24 - min_links = self.cache.get_link_info_data_attribute(ifname, Link.IFLA_BOND_MIN_LINKS)
25 - # get_min_links_nl may return None so we need to strictly check 0
26 - if min_links == 0:
27 - self.logger.warning('%s: attribute bond-min-links is set to \'0\'' % ifname)
28 else:
29 # IFLA_BOND_AD_LACP_RATE and IFLA_BOND_AD_LACP_BYPASS only for 802.3ad mode (4)
30 for nl_attr, attr_name in self._bond_lacp_attrs:
31 --
32 2.30.2
33