diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-08-12 21:03:53 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-08-12 21:03:53 -0700 |
| commit | 87e97a868b4b7361937bac8f637ec014276aaf5c (patch) | |
| tree | 7bef027bdc89ceba88ff805e5e2512a47f40d606 /nova | |
| parent | a1e60edee71d2cb24739f2f44ba13fbf28e72c95 (diff) | |
use dhcp server instead of gateway for filter exception
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/virt/libvirt/firewall.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/libvirt/firewall.py b/nova/virt/libvirt/firewall.py index fa29b99c3..a7a67dacb 100644 --- a/nova/virt/libvirt/firewall.py +++ b/nova/virt/libvirt/firewall.py @@ -609,7 +609,7 @@ class IptablesFirewallDriver(FirewallDriver): ipv4_rules += ['-j $provider'] ipv6_rules += ['-j $provider'] - dhcp_servers = [info['gateway'] for (_n, info) in network_info] + dhcp_servers = [info['dhcp_server'] for (_n, info) in network_info] for dhcp_server in dhcp_servers: ipv4_rules.append('-s %s -p udp --sport 67 --dport 68 ' |
