There are similar inefficiencies here:
https://github.com/openstack/nova/blob/600ecf3d9a5116d040cd18023ff270b91b06247d/nova/network/neutronv2/api.py#L2014
https://github.com/openstack/nova/blob/600ecf3d9a5116d040cd18023ff270b91b06247d/nova/network/neutronv2/api.py#L2031
The former in the case we have multiple ports on the same network, the latter if we have a server create request with multiple instances of the same network (the user is telling nova to create multiple ports on the same network).
There are similar inefficiencies here:
https:/ /github. com/openstack/ nova/blob/ 600ecf3d9a5116d 040cd18023ff270 b91b06247d/ nova/network/ neutronv2/ api.py# L2014
https:/ /github. com/openstack/ nova/blob/ 600ecf3d9a5116d 040cd18023ff270 b91b06247d/ nova/network/ neutronv2/ api.py# L2031
The former in the case we have multiple ports on the same network, the latter if we have a server create request with multiple instances of the same network (the user is telling nova to create multiple ports on the same network).