Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions content/plugins/current/main/bridge.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ If the bridge is missing, the plugin will create one on first use and, if gatewa
}
```

## Example L2-only, port isolation enabled
```json
{
"cniVersion": "0.3.1",
"name": "mynet",
"type": "bridge",
"bridge": "mynet0",
"portIsolation": "true"
}
```

## Network configuration reference

* `name` (string, required): the name of the network.
Expand All @@ -94,6 +105,7 @@ If the bridge is missing, the plugin will create one on first use and, if gatewa
* `enabledad` (boolean, optional): enables duplicate address detection for the container side veth. Defaults to false.
* `macspoofchk` (boolean, optional): Enables mac spoof check, limiting the traffic originating from the container to the mac address of the interface. Defaults to false.
* `disableContainerInterface` (boolean, optional): Set the container interface (veth peer inside the container netns) state down. When enabled, IPAM cannot be used.
* `portIsolation` (boolean, optional): Set isolation on the host interface (veth peer in root netns). When enabled containers can communicate only with the host, or through the gateway. Defaults to false.

*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.

Expand Down