heat.engine.clients.os.neutron package

heat.engine.clients.os.neutron package

Module contents

class heat.engine.clients.os.neutron.NeutronClientPlugin(context)[source]

Bases: 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_lb_status(lb_id)[source]
create_sfc_resource(resource, props)[source]

Returns created sfc resource record.

delete_sfc_resource(resource, resource_id)[source]

Deletes sfc resource record and returns status.

exceptions_module = <module 'neutronclient.common.exceptions' from '/home/zuul/.venv/local/lib/python2.7/site-packages/neutronclient/common/exceptions.pyc'>
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

has_extension(alias)[source]

Check if specific extension is present.

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_sfc_resource(resource, resource_id)[source]

Returns specific sfc resource record.

update_sfc_resource(resource, prop_diff, resource_id)[source]

Returns updated sfc resource record.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.