Skip to content

Add custom operation options support #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2016

Conversation

petrutlucian94
Copy link
Member

For some operations, such as creating a NIC team, custom operation
options must be passed.

This change exposes this functionality. Some methods now accept
a 'operation_options' dict that may contain a field 'custom_options'.
This needs to be a list of options, defined as dicts containing the
option name, option value and a MI value type, allowing the option
value to be 'casted' to a MI type.

A sample provided by this patch brings a better overview of this
feature.

Note that operation_timeouts are now specified within the
operation_options dict. The existing functional tests were updated
to reflect this change. Also, one of the tests that was failing
due to an expected timeout not being hit was fixed as well.

For some operations, such as creating a NIC team, custom operation
options must be passed.

This change exposes this functionality. Some methods now accept
a 'operation_options' dict that may contain a field 'custom_options'.
This needs to be a list of options, defined as dicts containing the
option name, option value and a MI value type, allowing the option
value to be 'casted' to a MI type.

A sample provided by this patch brings a better overview of this
feature.

Note that operation_timeouts are now specified within the
operation_options dict. The existing functional tests were updated
to reflect this change. Also, one of the tests that was failing
due to an expected timeout not being hit was fixed as well.
@alexpilotti alexpilotti merged commit 4358235 into cloudbase:master Sep 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants