You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/nw-about-configuring-master-interface-container.adoc
+1-253Lines changed: 1 addition & 253 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,256 +11,4 @@ In {product-title} 4.14 and later, the ability to allow users to create a MAC-VL
11
11
12
12
This feature allows you to create the master interfaces as part of the pod network configuration in a separate network attachment definition. You can then base the VLAN, MACVLAN, or IPVLAN on this interface without requiring the knowledge of the network configuration of the node.
13
13
14
-
To ensure the use of a container namespace master interface specify the `linkInContainer` and set the value to `true` in the VLAN, MACVLAN, or IPVLAN plugin configuration depending on the particular type of additional network.
15
-
16
-
An example use case for utilizing this feature is to create multiple VLANs based on SR-IOV VFs. To do so, begin by creating an SR-IOV network and then define the network attachments for the VLAN interfaces.
17
-
18
-
The following example shows how to configure the setup illustrated in this diagram.
The SR-IOV network node policy configuration example, with the setting `deviceType: netdevice`, is tailored specifically for Mellanox Network Interface Cards (NICs).
65
-
====
66
-
+
67
-
<1> The vendor hexadecimal code of the SR-IOV network device. The value `15b3` is associated with a Mellanox NIC.
68
-
<2> The device hexadecimal code of the SR-IOV network device.
69
-
70
-
.. Apply the YAML by running the following command:
71
-
+
72
-
[source,terminal]
73
-
----
74
-
$ oc apply -f sriov-node-network-policy.yaml
75
-
----
76
-
+
77
-
[NOTE]
78
-
====
79
-
Applying this might take some time due to the node requiring a reboot.
80
-
====
81
-
82
-
. Create an SR-IOV network:
83
-
84
-
.. Create the `SriovNetwork` custom resource (CR) for the additional SR-IOV network attachment as in the following example CR. Save the YAML as the file `sriov-network-attachment.yaml`:
85
-
+
86
-
[source,yaml]
87
-
----
88
-
apiVersion: sriovnetwork.openshift.io/v1
89
-
kind: SriovNetwork
90
-
metadata:
91
-
name: sriov-network
92
-
namespace: openshift-sriov-network-operator
93
-
spec:
94
-
networkNamespace: test-namespace
95
-
resourceName: sriovnic
96
-
spoofChk: "off"
97
-
trust: "on"
98
-
----
99
-
100
-
.. Apply the YAML by running the following command:
101
-
+
102
-
[source,terminal]
103
-
----
104
-
$ oc apply -f sriov-network-attachment.yaml
105
-
----
106
-
107
-
. Create a YAML file for the VLAN additional network configuration and then save the YAML in the `vlan100-additional-network-configuration.yaml` file:
To ensure the use of a container namespace master interface, specify the `linkInContainer` and set the value to `true` in the VLAN, MACVLAN, or IPVLAN plugin configuration depending on the particular type of additional network.
0 commit comments