From 8814631f8026acc03cb76a3263177399dfcd13bc Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Fri, 4 Sep 2015 22:23:43 +0200 Subject: [PATCH] bridge: add isDefaultGateway field When isDefaultGateway is true it automatically sets isGateway to true. The default route will be added via the (bridge's) gateway IP. If a default gateway has been configured via IPAM in the same configuration file, the plugin will error out. --- bridge.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridge.md b/bridge.md index f9c7f2c4..dcf52b70 100644 --- a/bridge.md +++ b/bridge.md @@ -17,7 +17,7 @@ If the bridge is missing, the plugin will create one on first use and, if gatewa "name": "mynet", "type": "bridge", "bridge": "mynet0", - "isGateway": true, + "isDefaultGateway": true, "ipMasq": true, "hairpinMode": true, "ipam": { @@ -33,6 +33,7 @@ If the bridge is missing, the plugin will create one on first use and, if gatewa * `type` (string, required): "bridge". * `bridge` (string, optional): name of the bridge to use/create. Defaults to "cni0". * `isGateway` (boolean, optional): assign an IP address to the bridge. Defaults to false. +* `isDefaultGateway` (boolean, optional): Sets isGateway to true and makes the assigned IP the default route. Defaults to false. * `ipMasq` (boolean, optional): set up IP Masquerade on the host for traffic originating from this network and destined outside of it. Defaults to false. * `mtu` (integer, optional): explicitly set MTU to the specified value. Defaults to the value chosen by the kernel. * `hairpinMode` (boolean, optional): set hairpin mode for interfaces on the bridge. Defaults to false.