From 7dea2a4c1bb21f94dcc79218b903f30b975ca1bc Mon Sep 17 00:00:00 2001 From: Daniel Weibel Date: Wed, 18 Dec 2019 19:04:26 +0800 Subject: [PATCH] Add missing cniVersion in README example Signed-off-by: Daniel Weibel --- plugins/main/bridge/README.md | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/plugins/main/bridge/README.md b/plugins/main/bridge/README.md index 793c7e43..130dd140 100644 --- a/plugins/main/bridge/README.md +++ b/plugins/main/bridge/README.md @@ -14,17 +14,18 @@ If the bridge is missing, the plugin will create one on first use and, if gatewa ## Example configuration ``` { - "name": "mynet", - "type": "bridge", - "bridge": "mynet0", - "isDefaultGateway": true, - "forceAddress": false, - "ipMasq": true, - "hairpinMode": true, - "ipam": { - "type": "host-local", - "subnet": "10.10.0.0/16" - } + "cniVersion": "0.3.1", + "name": "mynet", + "type": "bridge", + "bridge": "mynet0", + "isDefaultGateway": true, + "forceAddress": false, + "ipMasq": true, + "hairpinMode": true, + "ipam": { + "type": "host-local", + "subnet": "10.10.0.0/16" + } } ``` @@ -32,10 +33,10 @@ If the bridge is missing, the plugin will create one on first use and, if gatewa ``` { "cniVersion": "0.3.1", - "name": "mynet", - "type": "bridge", - "bridge": "mynet0", - "ipam": {} + "name": "mynet", + "type": "bridge", + "bridge": "mynet0", + "ipam": {} } ``` @@ -56,4 +57,4 @@ If the bridge is missing, the plugin will create one on first use and, if gatewa *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. -*Note:* To configure uplink for L2 network you need to allow the vlan on the uplink interface by using the following command ``` bridge vlan add vid VLAN_ID dev DEV```. \ No newline at end of file +*Note:* To configure uplink for L2 network you need to allow the vlan on the uplink interface by using the following command ``` bridge vlan add vid VLAN_ID dev DEV```.