plugins/bridge: add support to set hairpin mode
authorMinhan Xia <mixia@google.com>
Tue, 5 Apr 2016 17:50:28 +0000 (10:50 -0700)
committerStefan Junker <mail@stefanjunker.de>
Thu, 19 May 2016 10:06:37 +0000 (12:06 +0200)
bridge.md

index bda5ac5..f9c7f2c 100644 (file)
--- a/bridge.md
+++ b/bridge.md
@@ -19,6 +19,7 @@ If the bridge is missing, the plugin will create one on first use and, if gatewa
        "bridge": "mynet0",
        "isGateway": true,
        "ipMasq": true,
+       "hairpinMode": true,
        "ipam": {
                "type": "host-local",
                "subnet": "10.10.0.0/16"
@@ -34,4 +35,5 @@ If the bridge is missing, the plugin will create one on first use and, if gatewa
 * `isGateway` (boolean, optional): assign an IP address to the bridge. 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.
 * `ipam` (dictionary, required): IPAM configuration to be used for this network.