diff --git a/content/plugins/current/main/bridge.md b/content/plugins/current/main/bridge.md index d4a1b14..eb4d952 100644 --- a/content/plugins/current/main/bridge.md +++ b/content/plugins/current/main/bridge.md @@ -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. @@ -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.