Skip to content

Commit 7a1a3ac

Browse files
committed
OSDOCS-11732: Add dummy device as additional network
- https://issues.redhat.com/browse/OSDOCS-11732
1 parent 3ed1ca9 commit 7a1a3ac

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-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/secondary_networks/creating-secondary-nwt-other-cni.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ include::modules/nw-multus-bond-cni-object.adoc[leveloffset=+1]
2121
// Configuration for a host device secondary network
2222
include::modules/nw-multus-host-device-object.adoc[leveloffset=+1]
2323

24+
// Configure for a dummy additional network
25+
include::modules/nw-multus-dummy-device-object.adoc[leveloffset=+2]
26+
2427
// Configuration for an VLAN secondary network
2528
include::modules/nw-multus-vlan-object.adoc[leveloffset=+1]
2629

0 commit comments

Comments
 (0)