Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* eval() was previously used to marshall unchecked strings as filter parameters for QuantumDbPluginV2.get_ports() via the --fixed_ips flag. * This change removes the use of eval and cleans up the filtering implementation for get_ports(). * The new filtering implementation does not support arbitrary OR'ing or AND'ing. Instead, multiple values for a given filter key are logically OR'ed, and filters across keys are AND'ed. * Example usage - filter for .2 or .3 in the given subnet: quantum port-list -- --fixed_ips ip_address=10.0.0.3 \ ip_address=10.0.0.2 subnet_id=nOtaRealId * Addresses bug 1052179 Change-Id: I451f33ae53e623f86015b3fc2e6a7ca2f51ee836
- Loading branch information
1 parent
ac4049b
commit eb7f6b7
Showing
6 changed files
with
142 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters