Skip to content

Commit cf724c5

Browse files
authored
Merge pull request #85540 from MirzWeiss/CNV-51136
CNV-51136: Updated yaml in 'Creating a Linux bridge NAD' to reference standard Linux NNCP bridge name
2 parents 81dac24 + 686d4e5 commit cf724c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/virt-creating-linux-bridge-nad-cli.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,27 @@ Configuring IP address management (IPAM) in a network attachment definition for
2828
apiVersion: "k8s.cni.cncf.io/v1"
2929
kind: NetworkAttachmentDefinition
3030
metadata:
31-
name: bridge-network # <1>
31+
name: bridge-network <1>
3232
annotations:
33-
k8s.v1.cni.cncf.io/resourceName: bridge.network.kubevirt.io/bridge-interface # <2>
33+
k8s.v1.cni.cncf.io/resourceName: bridge.network.kubevirt.io/br1 <2>
3434
spec:
3535
config: |
3636
{
3737
"cniVersion": "0.3.1",
3838
"name": "bridge-network", <3>
3939
"type": "bridge", <4>
40-
"bridge": "bridge-interface", <5>
40+
"bridge": "br1", <5>
4141
"macspoofchk": false, <6>
4242
"vlan": 100, <7>
4343
"disableContainerInterface": true,
4444
"preserveDefaultVlan": false <8>
4545
}
4646
----
4747
<1> The name for the `NetworkAttachmentDefinition` object.
48-
<2> Optional: Annotation key-value pair for node selection, where `bridge-interface` must match the name of a bridge configured on some nodes. If you add this annotation to your network attachment definition, your virtual machine instances will only run on the nodes that have the `bridge-interface` bridge connected.
48+
<2> Optional: Annotation key-value pair for node selection for the bridge configured on some nodes. If you add this annotation to your network attachment definition, your virtual machine instances will only run on the nodes that have the defined bridge connected.
4949
<3> The name for the configuration. It is recommended to match the configuration name to the `name` value of the network attachment definition.
5050
<4> The actual name of the Container Network Interface (CNI) plugin that provides the network for this network attachment definition. Do not change this field unless you want to use a different CNI.
51-
<5> The name of the Linux bridge configured on the node.
51+
<5> The name of the Linux bridge configured on the node. The name should match the interface bridge name defined in the `NodeNetworkConfigurationPolicy` manifest.
5252
<6> Optional: A flag to enable the MAC spoof check. When set to `true`, you cannot change the MAC address of the pod or guest interface. This attribute allows only a single MAC address to exit the pod, which provides security against a MAC spoofing attack.
5353
<7> Optional: The VLAN tag. No additional VLAN configuration is required on the node network configuration policy.
5454
<8> Optional: Indicates whether the VM connects to the bridge through the default VLAN. The default value is `true`.

0 commit comments

Comments
 (0)