Skip to content

Commit fe6f58b

Browse files
authored
Merge pull request #96525 from kquinn1204/TELCODOCS-2278
Add transmit hash policy to bond CNI (Tech Preview)
2 parents a01c84c + df3bc7d commit fe6f58b

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

modules/nw-multus-bond-cni-object.adoc

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ The following table describes the configuration parameters for the Bond CNI plug
4444
|`string`
4545
|Specifies the bonding policy.
4646

47+
|`xmitHashPolicy`
48+
|`string`
49+
|Specifies the transmit hash policy for load balancing across the aggregated interfaces. This parameter defaults to `layer2` and supports the following values: `layer2`, `layer2+3` and `layer3+4`.
50+
4751
|`linksInContainer`
4852
|`boolean`
4953
|Optional: Specifies whether the network interfaces intended for bonding are expected to be created and available directly within the container's network namespace when the bond starts. If `false` which is the default, the CNI plugin looks for these interfaces on the host system first before attempting to form the bond.
@@ -58,6 +62,11 @@ The following table describes the configuration parameters for the Bond CNI plug
5862

5963
|====
6064

65+
--
66+
:FeatureName: xmitHashPolicy
67+
include::snippets/technology-preview.adoc[]
68+
--
69+
6170
[id="nw-multus-bond-cni-config-example_{context}"]
6271
== Bond CNI plugin configuration example
6372

@@ -87,4 +96,35 @@ The following example configures a secondary network named `bond-net1`:
8796
"gateway": "10.56.217.1"
8897
}
8998
}
90-
----
99+
----
100+
101+
The following example configures a secondary network named `bond-tlb-net` with the `xmitHashPolicy` feature enabled:
102+
103+
[source,json]
104+
----
105+
{
106+
"type": "bond",
107+
"cniVersion": "0.3.1",
108+
"name": "bond-tlb-net",
109+
"mode": "tlb",
110+
"xmitHashPolicy": "layer2+3", <1>
111+
"failOverMac": 0,
112+
"linksInContainer": true,
113+
"miimon": "100",
114+
"mtu": 1500,
115+
"links": [
116+
{"name": "net1"},
117+
{"name": "net2"}
118+
],
119+
"ipam": {
120+
"type": "host-local",
121+
"subnet": "10.57.218.0/24",
122+
"routes": [{
123+
"dst": "0.0.0.0/0"
124+
}],
125+
"gateway": "10.57.218.1"
126+
}
127+
}
128+
----
129+
130+
<1> This parameter dictates how outgoing network traffic is distributed across the `net1` and `net2` active member interfaces within the bond. The hashing algorithm combines layer 2 information, specifically source and destination MAC addresses, with layer 3 information, which includes source and destination IP addresses.

0 commit comments

Comments
 (0)