summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Hall <brad@nicira.com>2011-10-02 07:13:53 -0700
committerBrad Hall <brad@nicira.com>2011-11-04 02:09:30 -0700
commit8700a97b701136e13c7ef959f13c89a3b7462fdb (patch)
tree4f45492b4db8e0254a48030108ae05bf1870ed35
parentd90aaaafbc11c8e951ccde27cac11f70ae65c9b2 (diff)
downloadnova-8700a97b701136e13c7ef959f13c89a3b7462fdb.tar.gz
nova-8700a97b701136e13c7ef959f13c89a3b7462fdb.tar.xz
nova-8700a97b701136e13c7ef959f13c89a3b7462fdb.zip
Change floating-snat to float-snat
With iptables v1.4.10 I'm running into an issue with the chain length of the "nova-dhcpbridge-floating-snat" table (iptables it complaining that the name is too long; 28 chars max). This shortens the name of that table. Change-Id: I00b1003aaa0b3771c29d6459d07023a8caa47706
-rwxr-xr-xnova/network/linux_net.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/network/linux_net.py b/nova/network/linux_net.py
index fdd01b2fc..61096bc72 100755
--- a/nova/network/linux_net.py
+++ b/nova/network/linux_net.py
@@ -283,10 +283,10 @@ class IptablesManager(object):
self.ipv4['nat'].add_rule('nova-postrouting-bottom', '-j $snat',
wrap=False)
- # And then we add a floating-snat chain and jump to first thing in
+ # And then we add a float-snat chain and jump to first thing in
# the snat chain.
- self.ipv4['nat'].add_chain('floating-snat')
- self.ipv4['nat'].add_rule('snat', '-j $floating-snat')
+ self.ipv4['nat'].add_chain('float-snat')
+ self.ipv4['nat'].add_rule('snat', '-j $float-snat')
@utils.synchronized('iptables', external=True)
def apply(self):
@@ -470,7 +470,7 @@ def remove_floating_forward(floating_ip, fixed_ip):
def floating_forward_rules(floating_ip, fixed_ip):
return [('PREROUTING', '-d %s -j DNAT --to %s' % (floating_ip, fixed_ip)),
('OUTPUT', '-d %s -j DNAT --to %s' % (floating_ip, fixed_ip)),
- ('floating-snat',
+ ('float-snat',
'-s %s -j SNAT --to %s' % (fixed_ip, floating_ip))]