1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

Merge pull request #98524 from openshift-cherrypick-robot/cherry-pick-98124-to-enterprise-4.20

[enterprise-4.20] CNV-60380: Added Linux bridge NAD example for native VLAN
This commit is contained in:
Shikha Jhala
2025-09-04 11:01:17 -04:00
committed by GitHub

View File

@@ -66,6 +66,29 @@ OSA interfaces on {ibm-z-name} do not support VLAN filtering and VLAN-tagged tra
A Linux bridge network attachment definition is the most efficient method for connecting a virtual machine to a VLAN.
====
--
. Optional: If you want to connect a VM to the native network, configure the Linux bridge `NetworkAttachmentDefinition` manifest without specifying any VLAN:
+
[source,yaml]
----
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: bridge-network
annotations:
k8s.v1.cni.cncf.io/resourceName: bridge.network.kubevirt.io/br1
spec:
config: |
{
"cniVersion": "0.3.1",
"name": "bridge-network",
"type": "bridge",
"bridge": "br1",
"macspoofchk": false,
"disableContainerInterface": true
}
----
. Create the network attachment definition:
+
[source,terminal]