Address the PR comments

- Track only local changes.
- Add comment to the iptables rule which prevents SNAT'ing.
- Rename the ipset to weaver-no-masq-local to prevent NPC from destroying it.
- Fix comment about create/flush WEAVE-EXPOSE.
- Add comment about reexpose being no-op if bridge hasn't been exposed.
- Add comment that the feature is not only for Kubernetes.
- Reuse the ipset instance.
This commit is contained in:
Martynas Pumputis committed 2018-06-04 19:22:48 +02:00
1 parent 7fdf8fee13
commit b6115f0147
4 files changed
+29 -24

No files matched your search

+1 -1
View File
@@ -506,7 +506,7 @@ destroy_bridge() {
run_iptables -t nat -D POSTROUTING -o $BRIDGE -j ACCEPT >/dev/null 2>&1 || true
run_iptables -t nat -X WEAVE >/dev/null 2>&1 || true
ipset destroy weave-no-masq-local >/dev/null 2>&1 || true
ipset destroy weaver-no-masq-local >/dev/null 2>&1 || true
}
add_iface_fastdp() {