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/650404 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=9aafd5f131a ad6c885ef2eafdf edb8aea14967d4
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 9aafd5f131aad6c 885ef2eafdfedb8 aea14967d4
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