cfme.physical.physical_switch module

A model of an Infrastructure PhysicalSwitch in CFME.

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

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

VIEW

alias of PhysicalSwitchesView

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_switch.Details(obj, navigate_obj)[source]

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

VIEW

alias of PhysicalSwitchDetailsView

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_switch.PhysicalSwitch(parent, name, provider=None)[source]

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

Model of an Physical Switch in cfme.

Parameters:name – Name of the physical Switch.

Usage:

myswitch = PhysicalSwitch(name='sample_switch')
myswitch.create()
INVENTORY_TO_MATCH = ['power_state', 'part_number', 'serial_number', 'description', 'manufacturer']
__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)

Check equality and either forward a NotImplemented or return the result negated.

__repr__()

Automatically created by attrs.

db_id
description()[source]
exists

Checks if the physical_switch exists in the UI.

Returns: bool

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
manufacturer()[source]
part_number()[source]
power_state()[source]
pretty_attrs = ['name']
serial_number()[source]
wait_for_delete()[source]

Waits for the Switch to remove from the UI.

wait_to_appear()[source]

Waits for the Switch to appear in the UI.

class cfme.physical.physical_switch.PhysicalSwitchCollection(parent, filters=NOTHING)[source]

Bases: cfme.modeling.base.BaseCollection

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

ENTITY

alias of PhysicalSwitch

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

Check equality and either forward a NotImplemented or return the result negated.

__repr__()

Automatically created by attrs.

all()[source]

returning all physical_switches objects

find_by(ph_name, provider=None)[source]

returning all physical_switches objects

select_entity_rows(*physical_switches)[source]

Select all physical Switch objects