cfme.networks.cloud_network module¶
-
class
cfme.networks.cloud_network.
Add
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
CloudNetworkAddView
-
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.networks.cloud_network.
All
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
CloudNetworkView
-
prerequisite
¶ This is a helper descriptor for destinations which are linked to an attribute of the object.
For instance, imagine you have an object that has an attribute(parent) which 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 NavigateToAttribute as a helper, supplying only the name of the attribute which stores the object to be used in the navigation, and the destination name. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.networks.cloud_network.
CloudNetwork
(parent, name, provider_obj=None)[source]¶ Bases:
cfme.common.WidgetasticTaggable
,cfme.modeling.base.BaseEntity
Class representing cloud networks in cfme database
-
__eq__
(other)¶ Automatically created by attrs.
-
__ge__
(other)¶ Automatically created by attrs.
-
__gt__
(other)¶ Automatically created by attrs.
-
__le__
(other)¶ Automatically created by attrs.
-
__lt__
(other)¶ Automatically created by attrs.
-
__ne__
(other)¶ Automatically created by attrs.
-
__repr__
()¶ Automatically created by attrs.
-
category
= 'networks'¶
-
cloud_tenant
¶ Return name of tenant that network belongs to
-
db_types
= ['CloudNetwork']¶
-
edit
(name, change_external=None, change_admin_state=None, change_shared=None)[source]¶ Edit cloud network
Parameters: - name – (str) new network name
- change_external – (bool) is network external
- change_admin_state – (bool) network’s administrative state, ‘Up’ or ‘Down’
- change_shared – (bool) is network shared, ‘Yes’ or ‘No’
-
exists
¶
-
in_version
= ('5.8', Version('master'))¶
-
name
= Attribute(name='name', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))¶
-
network_provider
¶ Returns network provider
-
network_type
¶ Return type of network
-
parent_provider
¶ Return object of parent cloud provider
-
provider
¶
-
provider_obj
= Attribute(name='provider_obj', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))¶
-
quad_name
= None¶
-
string_name
= 'CloudNetwork'¶
-
-
class
cfme.networks.cloud_network.
CloudNetworkCollection
(parent, filters=NOTHING)[source]¶ Bases:
cfme.modeling.base.BaseCollection
Collection object for Cloud Network object
-
ENTITY
¶ alias of
CloudNetwork
-
__eq__
(other)¶ Automatically created by attrs.
-
__ge__
(other)¶ Automatically created by attrs.
-
__gt__
(other)¶ Automatically created by attrs.
-
__le__
(other)¶ Automatically created by attrs.
-
__lt__
(other)¶ Automatically created by attrs.
-
__ne__
(other)¶ Automatically created by attrs.
-
__repr__
()¶ Automatically created by attrs.
-
create
(name, tenant, provider, network_manager, network_type, is_external=False, admin_state=True, is_shared=False)[source]¶ Create cloud network
Parameters: - name – (str) name of the network
- tenant – (str) name of cloud tenant to place network to
- provider – crud object of Openstack Cloud provider
- network_manager – (str) name of network manager
- network_type – (str) type of network, such as ‘VXLAN’, ‘VLAN’, ‘GRE’ etc.
- is_external – (bool) is network external
- admin_state – (bool) network’s initial administrative state, True stands for ‘Up’, False - ‘Down’
- is_shared – (bool) is network shared
Returns: instance of cfme.networks.cloud_network.CloudNetwork
-
-
class
cfme.networks.cloud_network.
Details
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
CloudNetworkDetailsView
-
prerequisite
¶ This is a helper descriptor for destinations which are linked to an attribute of the object.
For instance, imagine you have an object that has an attribute(parent) which 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 NavigateToAttribute as a helper, supplying only the name of the attribute which stores the object to be used in the navigation, and the destination name. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.networks.cloud_network.
Edit
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
CloudNetworkEditView
-
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.
-