cfme.physical.physical_server module

A model of an Infrastructure PhysicalServer in CFME.

class cfme.physical.physical_server.All(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of PhysicalServersView

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.

step()[source]
class cfme.physical.physical_server.Details(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of PhysicalServerDetailsView

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.

step()[source]
class cfme.physical.physical_server.ManagePolicies(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of PhysicalServerManagePoliciesView

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.

step()[source]
class cfme.physical.physical_server.PhysicalServer(parent, name, provider=None, hostname=None, ip_address=None, custom_ident=None)[source]

Bases: cfme.modeling.base.BaseEntity, cfme.utils.update.Updateable, cfme.utils.pretty.Pretty, cfme.common.PolicyProfileAssignable, cfme.common.WidgetasticTaggable

Model of an Physical Server in cfme.

Parameters:
  • name – Name of the physical server.
  • hostname – hostname of the physical server.
  • ip_address – The IP address as a string.
  • custom_ident – The custom identifiter.

Usage:

myhost = PhysicalServer(name='vmware')
myhost.create()
__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.

custom_ident = Attribute(name='custom_ident', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))
db_id = None
execute_button(button_group, button, handle_alert=False)[source]
exists

Checks if the physical_server exists in the UI.

Returns: bool

get_db_id
get_detail(title, field)[source]

Gets details from the details summary tables.

Parameters:
  • title (str) – Summary Table title
  • field (str) – Summary table field name

Returns: A string representing the entities of the SummaryTable’s value.

hostname = Attribute(name='hostname', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))
ip_address = Attribute(name='ip_address', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))
load_details(refresh=False)[source]

To be compatible with the Taggable and PolicyProfileAssignable mixins.

Parameters:refresh (bool) – Whether to perform the page refresh, defaults to False
name = Attribute(name='name', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))
power_off()[source]
power_on()[source]
power_state
pretty_attrs = ['name', 'hostname', 'ip_address', 'custom_ident']
provider = Attribute(name='provider', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))
refresh(cancel=False)[source]

Perform ‘Refresh Relationships and Power States’ for the server.

Parameters:cancel (bool) – Whether the action should be cancelled, default to False
wait_for_delete()[source]

Waits for the server to remove from the UI.

wait_for_physical_server_state_change(desired_state, timeout=300)[source]
Wait for PhysicalServer to come to desired state. This function waits just the needed amount of
time thanks to wait_for.
Parameters:
  • desired_state (str) – ‘on’ or ‘off’
  • timeout (int) – Specify amount of time (in seconds) to wait until TimedOutError is raised
wait_to_appear()[source]

Waits for the server to appear in the UI.

class cfme.physical.physical_server.PhysicalServerCollection(parent, filters=NOTHING)[source]

Bases: cfme.modeling.base.BaseCollection

Collection object for the cfme.infrastructure.host.PhysicalServer.

ENTITY

alias of PhysicalServer

__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.

all(provider)[source]

returning all physical_servers objects

power_off(*physical_servers)[source]
power_on(*physical_servers)[source]
select_entity_rows(physical_servers)[source]

Select all physical server objects

class cfme.physical.physical_server.Timelines(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of PhysicalServerTimelinesView

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.

step()[source]