Skip to content

Commit 0499ecc

Browse files
authored
Merge pull request #98488 from jherrman/virt_bridge-mapping-updates-4.18_CNV-43771
OSDOC#43771 - Updates to NAD CLI configuration
2 parents b9e1c5c + e763efe commit 0499ecc

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

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

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spec:
3535
----
3636
<1> The name of the configuration object.
3737
<2> Specifies the nodes to which the node network configuration policy is to be applied. The recommended node selector value is `node-role.kubernetes.io/worker: ''`.
38-
<3> The name of the additional network from which traffic is forwarded to the OVS bridge. This attribute must match the value of the `spec.config.name` field of the `NetworkAttachmentDefinition` object that defines the OVN-Kubernetes additional network.
38+
<3> The name of the additional network from which traffic is forwarded to the OVS bridge. This attribute must match the value of the `spec.config.physicalNetworkName` field of the `NetworkAttachmentDefinition` object that defines the OVN-Kubernetes additional network.
3939
<4> The name of the OVS bridge on the node. This value is required if the `state` attribute is `present`.
4040
<5> The state of the mapping. Must be either `present` to add the mapping or `absent` to remove the mapping. The default value is `present`.
4141
+
@@ -57,21 +57,23 @@ spec:
5757
config: |-
5858
{
5959
"cniVersion": "0.3.1", <1>
60-
"name": "localnet-network", <2>
60+
"name": "localnet1", <2>
6161
"type": "ovn-k8s-cni-overlay", <3>
6262
"topology": "localnet", <4>
63-
"mtu": 1500, <5>
64-
"vlanID": 200, <6>
65-
"netAttachDefName": "default/localnet-network" <7>
63+
"physicalNetworkName": "localnet-network", <5>
64+
"mtu": 1500, <6>
65+
"vlanID": 200, <7>
66+
"netAttachDefName": "default/localnet-network" <8>
6667
}
6768
----
6869
<1> The CNI specification version. The required value is `0.3.1`.
69-
<2> The name of the network. This attribute must match the value of the `spec.desiredState.ovn.bridge-mappings.localnet` field of the `NodeNetworkConfigurationPolicy` object that defines the OVS bridge mapping.
70+
<2> The name of the network.
7071
<3> The name of the CNI plug-in to be configured. The required value is `ovn-k8s-cni-overlay`.
7172
<4> The topological configuration for the network. The required value is `localnet`.
72-
<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, and byte capacity of any enabled features, such as IPsec.
73-
<6> Optionally, for more fine-grained network management, you can configure a virtual LAN (VLAN) ID for the NAD. VMs that use this NAD have an interface that can communicate only with devices that use the same VLAN ID (`200` in this example).
74-
<7> The value of the `namespace` and `name` fields in the `metadata` stanza of the `NetworkAttachmentDefinition` object.
73+
<5> The name of the host's physical network interface, to which the pod's new network interface will be attached. This setting can be reused by multiple NADs. Note that `physicalNetworkName` must match the value of the `spec.desiredState.ovn.bridge-mappings.localnet` field of the `NodeNetworkConfigurationPolicy` object that defines the OVS bridge mapping.
74+
<6> 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 between the underlay MTU of the primary network interface, the overlay MTU of the pod network, and the byte capacity of any enabled features, such as IPsec encryption.
75+
<7> Optional: The virtual LAN (VLAN) ID for the NAD. VMs that use this NAD have an interface that can communicate only with devices that use the same VLAN ID. In this example, the VLAN ID is `200`.
76+
<8> The value of the `namespace` and `name` fields in the `metadata` stanza of the `NetworkAttachmentDefinition` object.
7577

7678
. Apply the manifest:
7779
+

0 commit comments

Comments
 (0)