cfme.networks.network_router module

class cfme.networks.network_router.AddInterface(obj, navigate_obj)[source]

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

VIEW

alias of NetworkRouterAddInterfaceView

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.networks.network_router.AddRouter(obj, navigate_obj)[source]

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

VIEW

alias of NetworkRouterAddView

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.networks.network_router.All(obj, navigate_obj)[source]

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

VIEW

alias of NetworkRouterView

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.

resetter()[source]

Reset the view

step()[source]
class cfme.networks.network_router.Details(obj, navigate_obj)[source]

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

VIEW

alias of NetworkRouterDetailsView

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.networks.network_router.EditRouter(obj, navigate_obj)[source]

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

VIEW

alias of NetworkRouterEditView

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.networks.network_router.NetworkRouter(parent, name, provider_obj=None, ext_network=None)[source]

Bases: cfme.common.Taggable, cfme.modeling.base.BaseEntity

Class representing network ports in sdn

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

add_interface(subnet_name)[source]

Adds subnet as an interface to current router

Parameters:subnet_name – (str) name of the subnet to be added
category = 'networks'
cloud_network

Return name of network that router connected to

cloud_tenant

Return name of tenant that router belongs to

db_types = ['NetworkRouter']
delete()[source]

Deletes current cloud router

edit(name=None, change_external_gw=None, ext_network=None, ext_network_subnet=None)[source]

Edit this router

Parameters:
  • name – (str) new name of router
  • change_external_gw – (bool) external gateway, True stands for ‘Yes’, False - ‘No’
  • ext_network – (str) name of external network to be connected as gateway to router. applicable if ‘external gateway’ is enabled
  • ext_network_subnet – (str) name of subnet of ext_network. applicable if ‘external gateway’ is enabled
exists
in_version = ('5.8', Version('master'))
network_provider

Returns network provider

provider
quad_name = None
string_name = 'NetworkRouter'
class cfme.networks.network_router.NetworkRouterCollection(parent, filters=NOTHING)[source]

Bases: cfme.modeling.base.BaseCollection

Collection object for NetworkRouter object Note: Network providers object are not implemented in mgmt

ENTITY

alias of NetworkRouter

__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]
create(name, provider, tenant, network_manager, has_external_gw=False, ext_network=None, ext_network_subnet=None)[source]

Create network router

Parameters:
  • name – (str) name of router
  • provider – crud object of OpenStack cloud provider
  • tenant – (str) name of tenant to place router to
  • network_manager – (str) name of network manager
  • has_external_gw – (bool) represents if router has external gateway
  • ext_network – (str) name of the external cloud network to be connected as a gateway to the router. Is used if has_external_gw == ‘Yes’
  • ext_network_subnet – (str) name of the subnet of ext_network. Is used if has_external_gw == ‘Yes’

Returns: instance of cfme.networks.network_router.NetworkRouter