Skip to content

Commit 9d824f8

Browse files
authored
Merge pull request #98124 from sjhala-ccs/cnv-60380
CNV-60380: Added Linux bridge NAD example for native VLAN
2 parents 58dbc0f + ff65dbf commit 9d824f8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,29 @@ OSA interfaces on {ibm-z-name} do not support VLAN filtering and VLAN-tagged tra
6666
A Linux bridge network attachment definition is the most efficient method for connecting a virtual machine to a VLAN.
6767
====
6868
--
69+
70+
. Optional: If you want to connect a VM to the native network, configure the Linux bridge `NetworkAttachmentDefinition` manifest without specifying any VLAN:
71+
+
72+
[source,yaml]
73+
----
74+
apiVersion: "k8s.cni.cncf.io/v1"
75+
kind: NetworkAttachmentDefinition
76+
metadata:
77+
name: bridge-network
78+
annotations:
79+
k8s.v1.cni.cncf.io/resourceName: bridge.network.kubevirt.io/br1
80+
spec:
81+
config: |
82+
{
83+
"cniVersion": "0.3.1",
84+
"name": "bridge-network",
85+
"type": "bridge",
86+
"bridge": "br1",
87+
"macspoofchk": false,
88+
"disableContainerInterface": true
89+
}
90+
----
91+
6992
. Create the network attachment definition:
7093
+
7194
[source,terminal]

0 commit comments

Comments
 (0)