# 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']
global quantum_username
global quantum_password
global quantum_tenant_name
+ global quantum_auth_url
logger.log("%s: plugin starting up..." % plugin)