diff options
| author | Josh Kearney <josh@jk0.org> | 2011-05-05 10:23:48 -0500 |
|---|---|---|
| committer | Josh Kearney <josh@jk0.org> | 2011-05-05 10:23:48 -0500 |
| commit | 310a43e6cccb151a5bcbeca8c30c25f229e6578c (patch) | |
| tree | 7fd582cec85865d53ec310ae583501ebc6d61cfb /nova | |
| parent | 63bfb59d7c2978edbeac0816bb234d28253facd6 (diff) | |
| parent | 114a55d0243f79db7ea1ef29830a9428dbf1aa33 (diff) | |
Merged trunk
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/network/linux_net.py | 4 | ||||
| -rw-r--r-- | nova/tests/test_misc.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/nova/network/linux_net.py b/nova/network/linux_net.py index ef997fd41..b50a4b4ea 100644 --- a/nova/network/linux_net.py +++ b/nova/network/linux_net.py @@ -406,6 +406,10 @@ def ensure_vlan_forward(public_ip, port, private_ip): "-d %s -p udp " "--dport %s -j DNAT --to %s:1194" % (public_ip, port, private_ip)) + iptables_manager.ipv4['nat'].add_rule("OUTPUT", + "-d %s -p udp " + "--dport %s -j DNAT --to %s:1194" % + (public_ip, port, private_ip)) iptables_manager.apply() diff --git a/nova/tests/test_misc.py b/nova/tests/test_misc.py index ad62b48bf..cf8f4c05e 100644 --- a/nova/tests/test_misc.py +++ b/nova/tests/test_misc.py @@ -68,7 +68,7 @@ class ProjectTestCase(test.TestCase): contributors.add(str_dict_replace(email, mailmap)) else: - self.assertTrue(False, 'Cannot read commit history') + return for contributor in contributors: if contributor == 'nova-core': |
