cfme.infrastructure.provider package¶
Submodules¶
Module contents¶
A model of an Infrastructure Provider in CFME
-
class
cfme.infrastructure.provider.
Add
(obj, navigate_obj)[source]¶ Bases:
utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
InfraProviderAddView
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.provider.
All
(obj, navigate_obj)[source]¶ Bases:
utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
InfraProvidersView
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are on another class/object.
For instance, imagine you have a different object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToObject as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step on the other object.
-
-
class
cfme.infrastructure.provider.
Details
(obj, navigate_obj)[source]¶ Bases:
utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
InfraProviderDetailsView
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.provider.
Discover
(obj, navigate_obj)[source]¶ Bases:
utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
InfraProvidersDiscoverView
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.provider.
Edit
(obj, navigate_obj)[source]¶ Bases:
utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
InfraProviderEditView
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.provider.
EditTags
(obj, navigate_obj)[source]¶ Bases:
utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
ProvidersEditTagsView
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.provider.
EditTagsFromDetails
(obj, navigate_obj)[source]¶ Bases:
utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
ProvidersEditTagsView
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.provider.
InfraProvider
(name=None, endpoints=None, key=None, zone=None, provider_data=None, appliance=None)[source]¶ Bases:
utils.pretty.Pretty
,cfme.common.provider.CloudInfraProvider
,widgetastic.utils.Fillable
Abstract model of an infrastructure provider in cfme. See VMwareProvider or RHEVMProvider.
Parameters: - name – Name of the provider.
- details – a details record (see VMwareDetails, RHEVMDetails inner class).
- key – The CFME key of the provider in the yaml.
- endpoints – one or several provider endpoints like DefaultEndpoint. it should be either dict
- format dict{endpoint.name, endpoint, endpoint_n.name, endpoint_n}, list of endpoints or (in) –
- one endpoint (mere) –
Usage:
credentials = Credential(principal='bad', secret='reallybad') endpoint = DefaultEndpoint(hostname='some_host', api_port=65536, credentials=credentials) myprov = VMwareProvider(name='foo', region='us-west-1' endpoints=endpoint) myprov.create()
-
STATS_TO_MATCH
= ['num_template', 'num_vm', 'num_datastore', 'num_host', 'num_cluster']¶
-
category
= 'infra'¶
-
db_types
= ['InfraManager']¶
-
discover
()[source]¶ Begins provider discovery from a provider instance
Usage:
discover_from_config(utils.providers.get_crud('rhevm'))
-
hosts
¶ Returns list of
cfme.infrastructure.host.Host
that should belong to this provider according to the YAML
-
id
¶ returns current provider id using rest api
-
num_cluster
(*args, **kwargs)¶
-
num_cluster_db
= None¶
-
num_cluster_ui
= None¶
-
num_datastore
(*args, **kwargs)¶
-
num_datastore_ui
= None¶
-
num_host
(*args, **kwargs)¶
-
num_host_db
= None¶
-
num_host_ui
= None¶
-
page_name
= 'infrastructure'¶
-
pretty_attrs
= ['name', 'key', 'zone']¶
-
provider_types
= {}¶
-
string_name
= 'Infrastructure'¶
-
templates_destination_name
= 'Templates'¶
-
view_value_mapping
¶
-
vm_name
¶
-
class
cfme.infrastructure.provider.
Instances
(obj, navigate_obj)[source]¶ Bases:
utils.appliance.implementations.ui.CFMENavigateStep
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.provider.
ManagePolicies
(obj, navigate_obj)[source]¶ Bases:
utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
ProvidersManagePoliciesView
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.provider.
ManagePoliciesFromDetails
(obj, navigate_obj)[source]¶ Bases:
utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
ProvidersManagePoliciesView
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.provider.
Templates
(obj, navigate_obj)[source]¶ Bases:
utils.appliance.implementations.ui.CFMENavigateStep
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.provider.
Timelines
(obj, navigate_obj)[source]¶ Bases:
utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
ProviderTimelinesView
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
cfme.infrastructure.provider.
discover
(discover_cls, cancel=False, start_ip=None, end_ip=None)[source]¶ Discover infrastructure providers. Note: only starts discovery, doesn’t wait for it to finish.
Parameters: - discover_cls – Instance of provider class
- cancel – Whether to cancel out of the discover UI.
- start_ip – String start of the IP range for discovery
- end_ip – String end of the IP range for discovery