|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * networking/multiple_networks/configuring-additional-network.adoc |
| 4 | + |
| 5 | +:_content-type: REFERENCE |
| 6 | +[id="nw-multus-tap-object_{context}"] |
| 7 | += Configuration for a TAP additional network |
| 8 | + |
| 9 | +The following object describes the configuration parameters for the TAP CNI |
| 10 | +plugin: |
| 11 | + |
| 12 | +.TAP CNI plugin JSON configuration object |
| 13 | +[cols=".^2,.^2,.^6",options="header"] |
| 14 | +|==== |
| 15 | +|Field|Type|Description |
| 16 | + |
| 17 | +|`cniVersion` |
| 18 | +|`string` |
| 19 | +|The CNI specification version. The `0.3.1` value is required. |
| 20 | + |
| 21 | +|`name` |
| 22 | +|`string` |
| 23 | +|The value for the `name` parameter you provided previously for the CNO configuration. |
| 24 | + |
| 25 | +|`type` |
| 26 | +|`string` |
| 27 | +|The name of the CNI plugin to configure: `tap`. |
| 28 | + |
| 29 | +|`mac` |
| 30 | +|`string` |
| 31 | +|Optional: Request the specified MAC address for the interface. |
| 32 | + |
| 33 | +|`mtu` |
| 34 | +|`integer` |
| 35 | +|Optional: Set the maximum transmission unit (MTU) to the specified value. The default value is automatically set by the kernel. |
| 36 | + |
| 37 | +|`selinuxcontext` |
| 38 | +|`string` |
| 39 | +a|Optional: The SELinux context to associate with the tap device. |
| 40 | + |
| 41 | +[NOTE] |
| 42 | +==== |
| 43 | +The value `system_u:system_r:container_t:s0` is required for {product-title}. |
| 44 | +==== |
| 45 | + |
| 46 | +|`multiQueue` |
| 47 | +|`boolean` |
| 48 | +|Optional: Set to `true` to enable multi-queue. |
| 49 | + |
| 50 | +|`owner` |
| 51 | +|`integer` |
| 52 | +|Optional: The user owning the tap device. |
| 53 | + |
| 54 | +|`group` |
| 55 | +|`integer` |
| 56 | +|Optional: The group owning the tap device. |
| 57 | + |
| 58 | +|`bridge` |
| 59 | +|`string` |
| 60 | +|Optional: Set the tap device as a port of an already existing bridge. |
| 61 | +|==== |
| 62 | + |
| 63 | +[id="nw-multus-tap-config-example_{context}"] |
| 64 | +== Tap configuration example |
| 65 | + |
| 66 | +The following example configures an additional network named `mynet`: |
| 67 | + |
| 68 | +[source,json] |
| 69 | +---- |
| 70 | +{ |
| 71 | + "name": "mynet", |
| 72 | + "cniVersion": "0.3.1", |
| 73 | + "type": "tap", |
| 74 | + "mac": "00:11:22:33:44:55", |
| 75 | + "mtu": 1500, |
| 76 | + "selinuxcontext": "system_u:system_r:container_t:s0", |
| 77 | + "multiQueue": true, |
| 78 | + "owner": 0, |
| 79 | + "group": 0 |
| 80 | + "bridge": "br1" |
| 81 | +} |
| 82 | +---- |
| 83 | + |
| 84 | +[NOTE] |
| 85 | +==== |
| 86 | +To create the tap device with the `container_t` SELinux context, enable the `container_use_devices` boolean on the host by using the Machine Config Operator (MCO). |
| 87 | +==== |
0 commit comments