Add missing cniVersion in README example

Signed-off-by: Daniel Weibel <danielmweibel@gmail.com>
This commit is contained in:
Daniel Weibel 2019-12-18 19:04:26 +08:00
parent 6551165853
commit 7dea2a4c1b

View File

@ -14,17 +14,18 @@ If the bridge is missing, the plugin will create one on first use and, if gatewa
## Example configuration ## Example configuration
``` ```
{ {
"name": "mynet", "cniVersion": "0.3.1",
"type": "bridge", "name": "mynet",
"bridge": "mynet0", "type": "bridge",
"isDefaultGateway": true, "bridge": "mynet0",
"forceAddress": false, "isDefaultGateway": true,
"ipMasq": true, "forceAddress": false,
"hairpinMode": true, "ipMasq": true,
"ipam": { "hairpinMode": true,
"type": "host-local", "ipam": {
"subnet": "10.10.0.0/16" "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", "cniVersion": "0.3.1",
"name": "mynet", "name": "mynet",
"type": "bridge", "type": "bridge",
"bridge": "mynet0", "bridge": "mynet0",
"ipam": {} "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:* 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```. *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```.