History | View | Annotate | Download (10 kB)
Improve server-list usability
Refs #3375
Improve perf for snf-manage cyclades commands
When the snf-manage {server, network}-list commands are invoked with the--displayname option, batch the UUID-to-displayname requests to astakos,instead of issuing a request for each (unique) UUID.
Add type assertions in pprint_table args
Add assertions about the types of "table" and "headers" arguments.
Refs #3365
Fix TypeError in pprint_table
Convert all fields of table and headers to strings before counting theirlength or right-aligning them.
Validate all network-create parameters
Fix bug: Detect malformed network subnet
Fix bug in Cyclades network API. API should raise BadRequest ifspecified network subnet is invalid. Also, do not allow subnets withhost bits set (like 10.0.0.1/28).
Don't use CYCLADES_USER_CATALOG_URL in snf-manage
Replace CYCLADES_USER_CATALOG_URL with ASTAKOS_URL.replace() insnf-manage cmds that use it. CYCLADES_ASTAKOS_SERVICE_TOKEN(/user_catalogs) cannot be used with CYCLADES_ASTAKOS_SERVICE_TOKEN./service/api/user_catalogs should be used instead.
Fixes relave to --uuids option
Pep8 fixes
Add --uuids option to server-list
Move exception handling in get_user()
Fix a pep8 error
Handle exceptions when using --filter-by
Handle exceptions in 'filter_results' (management commands helperfunctions used to implement --filter-by option).
Modify backend-modify --drained and --offline args
Make backend-modify drained argument as --drained=True|False insteadof --drained and --no-drained. The same for offline.
Add function for pretty printing tables
Check clustername when modifying backend
Add --filter-by option to *-list commands
Add --filter-by option to server-list, network-list and flavor-listmanagement commands. The value of this option is a comma-seperated listof key 'cond' val pairs and, when used, only the DB entries that satisfy all of...
Refactor code in management commands