Skip to content

Commit 0c12a42

Browse files
committed
OCPBUGS-57322: Update the default MTU statement in OVNK docs
1 parent ef95538 commit 0c12a42

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

modules/configuration-ovnk-network-plugin-json-object.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ When omitted, the logical switch implementing the network only provides layer 2
4747
|`mtu`
4848
|`string`
4949
|
50-
The maximum transmission unit (MTU). The default value, `1300`, is automatically set by the kernel.
50+
The maximum transmission unit (MTU). If you do not set a value, the Cluster Network Operator (CNO) sets a default MTU value by calculating the difference among the underlay MTU of the primary network interface, the overlay MTU of the pod network, such as the Geneve (Generic Network Virtualization Encapsulation), and byte capacity of any enabled features, such as IPsec.
5151

5252
|`netAttachDefName`
5353
|`string`

modules/configuring-localnet-switched-topology.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ spec:
4848
<4> The name of the OVS bridge on the node. This value is required only if you specify `state: present`.
4949
<5> The state for the mapping. Must be either `present` to add the bridge or `absent` to remove the bridge. The default value is `present`.
5050
+
51-
The following JSON example configures a localnet secondary network that is named `localnet1`:
51+
The following JSON example configures a localnet secondary network that is named `localnet1`. Note that the value for the `mtu` parameter must match the MTU value that was set for the secondary network interface that is mapped to the `br-ex` bridge interface.
5252
+
5353
[source,json]
5454
----
@@ -108,7 +108,7 @@ spec:
108108
<7> Specifies the name of the OVS bridge on the node. The value is required only when `state: present` is set.
109109
<8> Specifies the state of the mapping. Valid values are `present` to add the bridge or `absent` to remove the bridge. The default value is `present`.
110110
+
111-
The following JSON example configures a localnet secondary network that is named `localnet2`:
111+
The following JSON example configures a localnet secondary network that is named `localnet2`. Note that the value for the `mtu` parameter must match the MTU value that was set for the `eth1` secondary network interface.
112112
+
113113
[source,json]
114114
----

modules/virt-creating-layer2-nad-cli.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ spec:
3838
<2> The name of the network. This attribute is not namespaced. For example, you can have a network named `l2-network` referenced from two different `NetworkAttachmentDefinition` objects that exist in two different namespaces. This feature is useful to connect VMs in different namespaces.
3939
<3> The name of the CNI plug-in to be configured. The required value is `ovn-k8s-cni-overlay`.
4040
<4> The topological configuration for the network. The required value is `layer2`.
41-
<5> Optional: The maximum transmission unit (MTU) value. The default value is automatically set by the kernel.
41+
<5> Optional: The maximum transmission unit (MTU) value. If you do not set a value, the Cluster Network Operator (CNO) sets a default MTU value by calculating the difference among the underlay MTU of the primary network interface, the overlay MTU of the pod network, such as the Geneve (Generic Network Virtualization Encapsulation), and byte capacity of any enabled features, such as IPsec.
4242
<6> The value of the `namespace` and `name` fields in the `metadata` stanza of the `NetworkAttachmentDefinition` object.
4343
+
4444
[NOTE]

0 commit comments

Comments
 (0)