heat.engine.clients.os.neutron package

Submodules

Module contents

class heat.engine.clients.os.neutron.NeutronClientPlugin(*args, **kwargs)[source]

Bases: heat.engine.clients.os.ExtensionMixin, heat.engine.clients.client_plugin.ClientPlugin

NETWORK = 'network'
RES_TYPES = ('network', 'subnet', 'router', 'port', 'subnetpool', 'address_scope', 'security_group', 'policy', 'loadbalancer', 'listener', 'pool', 'l7policy')
RES_TYPE_ADDRESS_SCOPE = 'address_scope'
RES_TYPE_LB_L7POLICY = 'l7policy'
RES_TYPE_LB_LISTENER = 'listener'
RES_TYPE_LB_POOL = 'pool'
RES_TYPE_LOADBALANCER = 'loadbalancer'
RES_TYPE_NETWORK = 'network'
RES_TYPE_PORT = 'port'
RES_TYPE_QOS_POLICY = 'policy'
RES_TYPE_ROUTER = 'router'
RES_TYPE_SECURITY_GROUP = 'security_group'
RES_TYPE_SUBNET = 'subnet'
RES_TYPE_SUBNET_POOL = 'subnetpool'
check_ext_resource_status(resource, resource_id)[source]
check_lb_status(lb_id)[source]
create_ext_resource(resource, props)[source]

Returns created ext resource record.

delete_ext_resource(resource, resource_id)[source]

Deletes ext resource record and returns status.

exceptions_module = <module 'neutronclient.common.exceptions' from '/home/zuul/src/opendev.org/openstack/heat/.tox/docs/lib/python3.10/site-packages/neutronclient/common/exceptions.py'>
find_resourceid_by_name_or_id(resource, name_or_id, cmd_resource=None)[source]

Find a resource ID given either a name or an ID.

The resource argument should be one of the constants defined in RES_TYPES.

get_qos_policy_id(policy)[source]

Returns the id of QoS policy.

Args: policy: ID or name of the policy.

get_secgroup_uuids(security_groups)[source]

Returns a list of security group UUIDs.

Args: security_groups: List of security group names or UUIDs

is_conflict(ex)[source]

Returns True if the exception is a conflict.

is_invalid(ex)[source]
is_no_unique(ex)[source]
is_not_found(ex)[source]

Returns True if the exception is a not-found.

is_over_limit(ex)[source]

Returns True if the exception is an over-limit.

network_id_from_subnet_id(subnet_id)[source]
resolve_ext_resource(resource, name_or_id)[source]

Returns the id and validate neutron ext resource.

resolve_pool(props, pool_key, pool_id_key)[source]
resolve_router(props, router_key, router_id_key)[source]
service_types = ['network']
show_ext_resource(resource, resource_id)[source]

Returns specific ext resource record.

update_ext_resource(resource, prop_diff, resource_id)[source]

Returns updated ext resource record.