add the ability to skip creation of MASQUERADE rules via iptables when executing weave expose command

This commit is contained in:
Aaron Hurt committed 2018-08-31 11:46:31 -05:00
1 parent ad4e4238a5
commit 4b9c533b94
6 files changed
+42 -15

No files matched your search

+1 -1
View File
@@ -513,7 +513,7 @@ func exposeForAWSVPC(alloc *ipam.Allocator, subnet address.CIDR, bridgeName stri
addr, err := alloc.Allocate("weave:expose", subnet, false, func() bool { return false })
checkFatal(err)
cidr := address.MakeCIDR(subnet, addr)
err = weavenet.Expose(bridgeName, cidr.IPNet(), true, false)
err = weavenet.Expose(bridgeName, cidr.IPNet(), true, false, false)
checkFatal(err)
Log.Printf("Bridge %q exposed on address %v", bridgeName, cidr)
ready()