Comment
authorAndy Bavier <acb@cs.princeton.edu>
Fri, 20 Sep 2013 20:10:26 +0000 (16:10 -0400)
committerAndy Bavier <acb@cs.princeton.edu>
Fri, 20 Sep 2013 20:10:26 +0000 (16:10 -0400)
plugins/planetstack-net.py

index ded009d..953bc9d 100644 (file)
@@ -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])