From: Andy Bavier Date: Wed, 20 Nov 2013 21:18:29 +0000 (-0500) Subject: Bug fix X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=544b686673cd23d8f3be3de93e6723e639bc3246;p=nodemanager.git Bug fix --- diff --git a/plugins/planetstack-net.py b/plugins/planetstack-net.py index 2269e44..f47b63d 100644 --- a/plugins/planetstack-net.py +++ b/plugins/planetstack-net.py @@ -257,7 +257,7 @@ def write_dnsmasq_hostsfile(dev, ports, net_id): # the nat:forward_ports field in the Port record. def set_up_port_forwarding(dev, ports): for port in ports: - if port['network_id'] == nat_net_id: + if port['network_id'] == nat_net_id and port['nat:forward_ports']: for fw in port['nat:forward_ports']: ipaddr = port['fixed_ips'][0]['ip_address'] protocol = fw['l4_protocol'] @@ -283,6 +283,7 @@ def start(): global quantum_username global quantum_password global quantum_tenant_name + global quantum_auth_url logger.log("%s: plugin starting up..." % plugin)