git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf0d65b
)
Comment
author
Andy Bavier
<acb@cs.princeton.edu>
Fri, 20 Sep 2013 20:10:26 +0000
(16:10 -0400)
committer
Andy Bavier
<acb@cs.princeton.edu>
Fri, 20 Sep 2013 20:10:26 +0000
(16:10 -0400)
plugins/planetstack-net.py
patch
|
blob
|
history
diff --git
a/plugins/planetstack-net.py
b/plugins/planetstack-net.py
index
ded009d
..
953bc9d
100644
(file)
--- a/
plugins/planetstack-net.py
+++ b/
plugins/planetstack-net.py
@@
-239,6
+239,8
@@
def process_quantum_ports(dev):
protocol = fw['l4_protocol']
fwport = fw['l4_port']
# logger.log("%s: fwd port %s/%s to %s" % (plugin, protocol, fwport, ipaddr))
+
+ # Shouldn't hardcode br-eth0 here. Maybe use '-d <node IP address>'?
add_iptables_rule('nat', plugin, ['-i', 'br-eth0',
'-p', protocol, '--dport', fwport,
'-j', 'DNAT', '--to-destination', ipaddr])