2015-12-01 22:57:37 |
Matt Riedemann |
description |
There are two things we can to make this more efficient:
https://github.com/openstack/nova/blob/master/nova/network/neutronv2/api.py#L1182
1. Move the list_ports call after the unlimited quota check - if the quota is unlimited, we don't need to list ports.
2. Filter the list_ports response to only return the port id, we don't need the other port details in the response since we don't use those fields, we're just getting a count. |
There are two things we can do to make this more efficient:
https://github.com/openstack/nova/blob/master/nova/network/neutronv2/api.py#L1182
1. Move the list_ports call after the unlimited quota check - if the quota is unlimited, we don't need to list ports.
2. Filter the list_ports response to only return the port id, we don't need the other port details in the response since we don't use those fields, we're just getting a count. |
|