Skip to content

Commit 928180f

Browse files
authored
Merge pull request #81643 from jab-rh/OSDOCS-11732
OSDOCS-11732: Add dummy device as additional network
2 parents 60a7ca0 + 042641b commit 928180f

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * networking/multiple_networks/configuring-additional-network.adoc
4+
5+
:_mod-docs-content-type: REFERENCE
6+
[id="nw-multus-dummy-device-object_{context}"]
7+
= Configuration for a dummy device additional network
8+
9+
The dummy CNI plugin functions like a loopback device. The plugin is a virtual interface, and you can use the plugin to route the packets to a designated IP address. Unlike a loopback device, the IP address is arbitrary and is not restricted to the `127.0.0.0/8` address range.
10+
11+
The following object describes the configuration parameters for the dummy CNI plugin:
12+
13+
.Dummy device CNI plugin JSON configuration object
14+
[cols=".^2,.^2,.^6",options="header"]
15+
|====
16+
|Field|Type|Description
17+
18+
|`cniVersion`
19+
|`string`
20+
|The CNI specification version. The required value is `0.3.1`.
21+
22+
|`name`
23+
|`string`
24+
|The value for the `name` parameter that you previously specified for the CNO configuration.
25+
26+
|`type`
27+
|`string`
28+
|The name of the CNI plugin that you want to configure. The required value is `dummy`.
29+
30+
|`ipam`
31+
|`object`
32+
|The configuration object for the IPAM CNI plugin. The plugin manages the IP address assignment for the attachment definition.
33+
34+
|====
35+
36+
[id="nw-multus-dummy-device-config-example_{context}"]
37+
== dummy configuration example
38+
39+
The following example configures an additional network named `hostdev-net`:
40+
41+
[source,json]
42+
----
43+
{
44+
"cniVersion": "0.3.1",
45+
"name": "dummy-net",
46+
"type": "dummy",
47+
"ipam": {
48+
"type": "host-local",
49+
"subnet": "10.1.1.0/24"
50+
}
51+
}
52+
----

networking/multiple_networks/configuring-additional-network.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ toc::[]
99
As a cluster administrator, you can configure a primary network for your cluster. The following network types are supported:
1010

1111
* xref:../../networking/multiple_networks/configuring-additional-network.adoc#nw-multus-bridge-object_configuring-additional-network[Bridge]
12+
* xref:../../networking/multiple_networks/configuring-additional-network.adoc#nw-multus-dummy-device-object_configuring-additional-network[Dummy device]
1213
* xref:../../networking/multiple_networks/configuring-additional-network.adoc#nw-multus-host-device-object_configuring-additional-network[Host device]
1314
* xref:../../networking/multiple_networks/configuring-additional-network.adoc#nw-multus-vlan-object_configuring-additional-network[VLAN]
1415
* xref:../../networking/multiple_networks/configuring-additional-network.adoc#nw-multus-ipvlan-object_configuring-additional-network[IPVLAN]
@@ -166,6 +167,9 @@ include::modules/nw-multus-bridge-object.adoc[leveloffset=+2]
166167
// Configuration for a host device additional network
167168
include::modules/nw-multus-host-device-object.adoc[leveloffset=+2]
168169

170+
// Configure for a dummy additional network
171+
include::modules/nw-multus-dummy-device-object.adoc[leveloffset=+2]
172+
169173
// Configuration for an VLAN additional network
170174
include::modules/nw-multus-vlan-object.adoc[leveloffset=+2]
171175

0 commit comments

Comments
 (0)