Skip to content

Commit 4282c75

Browse files
authored
Merge pull request #137 from ormergi/bridge-disable-cont-iface
bridge: Disable container interface
2 parents 9e3b045 + 15e6dbe commit 4282c75

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

content/plugins/current/main/bridge.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ If the bridge is missing, the plugin will create one on first use and, if gatewa
6363
}
6464
```
6565

66+
## Example L2-only, disabled interface configuration
67+
```json
68+
{
69+
"cniVersion": "0.3.1",
70+
"name": "mynet",
71+
"type": "bridge",
72+
"bridge": "mynet0",
73+
"disableContainerInterface": "true",
74+
}
75+
```
76+
6677
## Network configuration reference
6778

6879
* `name` (string, required): the name of the network.
@@ -81,6 +92,7 @@ If the bridge is missing, the plugin will create one on first use and, if gatewa
8192
* `vlanTrunk` (list, optional): assign VLAN trunk tag. Defaults to none.
8293
* `enabledad` (boolean, optional): enables duplicate address detection for the container side veth. Defaults to false.
8394
* `macspoofchk` (boolean, optional): Enables mac spoof check, limiting the traffic originating from the container to the mac address of the interface. Defaults to false.
95+
* `disableContainerInterface` (boolean, optional): Set the container interface (veth peer inside the container netns) state down. When enabled, IPAM cannot be used.
8496

8597
*Note:* The VLAN parameter configures the VLAN tag on the host end of the veth and also enables the vlan_filtering feature on the bridge interface.
8698

0 commit comments

Comments
 (0)