Relating to the issue with creating rules, when reading security
groups, it is very slow. Even when limiting to id/name, it pulls
in all rules before returning just id/name.
This change looks at the fields requested, and if no "synthetic"
fields are in the list, skips initializing those.
Reviewed: https:/ /review. openstack. org/630401 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=1d41f39ddf2 3b131a8960ac718 ed9f8f015f3702
Committed: https:/
Submitter: Zuul
Branch: master
commit 1d41f39ddf23b13 1a8960ac718ed9f 8f015f3702
Author: Doug Wiegley <email address hidden>
Date: Fri Jan 11 15:14:52 2019 -0700
Fix slow SG api calls when limiting fields
Relating to the issue with creating rules, when reading security
groups, it is very slow. Even when limiting to id/name, it pulls
in all rules before returning just id/name.
This change looks at the fields requested, and if no "synthetic"
fields are in the list, skips initializing those.
Co-Authored-By: Hongbin Lu<email address hidden> 66e9b7fb900ad2d 0894ee2715d
Closes-Bug: #1810563
Change-Id: Id6870633e39436