Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num While BoolOpOr CompareIs NameLoad NameLoad CompareLt Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad body AugAssignAdd NameStore Num Expr Yield NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If NameLoad body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareIn Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If UnaryOpNot NameLoad body Return NameLoad FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot NameLoad body Return NameLoad For NameStore Call AttributeLoad NameLoad attr body If Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body If UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body Return NameLoad orelse If CompareNotEq Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad body Return NameLoad Return NameLoad decorator_list Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr body If Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body If UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Break orelse If CompareNotEq Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad body Expr Call AttributeLoad NameLoad attr Break Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str If Call NameLoad NameLoad Str body Return NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad If CompareGt Call NameLoad NameLoad Num body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str NameLoad If CompareNotEq Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str ListLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str Str Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp Dict Str Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp Dict Str Str Str Str Str Str Str Str SubscriptLoad NameLoad Index Str Str Str IfExp CompareEq SubscriptLoad NameLoad Index Str Num NameLoad SubscriptLoad NameLoad Index Str IfExp CompareEq SubscriptLoad NameLoad Index Str Num NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str NameLoad SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp Call NameLoad keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword BoolOpAnd CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad CompareNotEq Call AttributeLoad NameLoad attr Str Str keyword Str comprehension NameStore NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr Str keyword SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword BoolOpAnd CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad CompareNotEq Call AttributeLoad NameLoad attr Str Str keyword SubscriptLoad NameLoad Index Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return CompareIn AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp Call NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str comprehension NameStore NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad For NameStore TupleLoad Str Str body If BoolOpAnd CompareIn NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad AttributeLoad NameLoad attr body If CompareIsNot SubscriptLoad NameLoad Index NameLoad NameLoad body If CompareEq Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Str body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse If CompareEq Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Str body Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp Call NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str comprehension NameStore NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp Call NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str comprehension NameStore NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Dict Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str For NameStore TupleLoad Str Str body If CompareIn NameLoad SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str For NameStore TupleLoad Str Str body If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp Call NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str comprehension NameStore NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults vararg body FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If BoolOpAnd CompareNotIn NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num CompareNotIn NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr keyword SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Index Num keyword NameLoad Return Call NameLoad NameLoad NameLoad decorator_list NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return Call AttributeLoad Call Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Yield handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword Call NameLoad NameLoad ExceptHandler type NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword Call NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body TryExcept body Expr Yield handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq AttributeLoad NameLoad attr Num body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword Call NameLoad NameLoad orelse Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword Call NameLoad NameLoad ExceptHandler type NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword Call NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults NameLoad body Expr Str TryExcept body Expr Yield handlers ExceptHandler type AttributeLoad NameLoad attr body Raise ExceptHandler type NameLoad name NameStore body If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad For NameStore NameLoad body If BoolOpAnd CompareIn NameLoad NameLoad CompareIsNot SubscriptLoad NameLoad Index NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword SubscriptLoad NameLoad Index NameLoad If BoolOpOr CompareIs NameLoad NameLoad CompareLt NameLoad NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad For NameStore NameLoad body If BoolOpAnd CompareIn NameLoad NameLoad CompareIsNot SubscriptLoad NameLoad Index NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword SubscriptLoad NameLoad Index NameLoad If BoolOpOr CompareIs NameLoad NameLoad CompareGt NameLoad NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Return ListLoad For NameStore NameLoad body If CompareEq Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Return ListLoad For NameStore NameLoad body If CompareEq Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Num If NameLoad body For NameStore NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad Str body If CompareLt NameLoad SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body If CompareGt NameLoad SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body If CompareLtE NameLoad SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body If CompareGtE NameLoad SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad orelse For NameStore NameLoad body If CompareEq Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list
N/A N/A contextlib N/A inspect N/A munch N/A netifaces N/A re N/A six N/A time decorator decorator heatclient exc heat_exc neutronclient.common exceptions neutron_exc shade _log shade exc shade meta N/A log N/A N/A _log setup_logging __name__ N/A _decorated_methods N/A _iterate_timeout N/A N/A timeout message wait N/A 2 N/A N/A Iterate and raise an exception on timeout.

    This is a generator that will continually yield and sleep for
    wait seconds, and if the timeout is reached, will raise an exception
    with <message>.

     N/A N/A N/A wait N/A float wait N/A N/A N/A ValueError N/A N/A N/A N/A exc OpenStackCloudException N/A N/A Wait value must be an int or float value. {wait} given instead format wait wait N/A start N/A N/A time time N/A count 0 N/A N/A N/A timeout None N/A N/A N/A time time N/A start timeout N/A N/A count 1 N/A N/A count N/A N/A N/A log debug N/A N/A Waiting {wait} seconds format wait wait N/A N/A N/A time sleep wait N/A N/A N/A exc OpenStackCloudTimeout message N/A _filter_list N/A N/A data name_or_id filters N/A N/A N/A Filter a list by name/ID and arbitrary meta data.

    :param list data:
        The list of dictionary data to filter. It is expected that
        each dictionary contains an 'id' and 'name'
        key if a value for name_or_id is given.
    :param string name_or_id:
        The name or ID of the entity being filtered.
    :param dict filters:
        A dictionary of meta data to use for further filtering. Elements
        of this dictionary may, themselves, be dictionaries. Example::

            {
              'last_name': 'Smith',
              'other': {
                  'gender': 'Female'
              }
            }
     N/A name_or_id N/A N/A identifier_matches N/A N/A e data N/A N/A e_id N/A str N/A N/A e get id None N/A e_name N/A N/A e get name None N/A N/A N/A str name_or_id N/A e_id e_name N/A N/A N/A N/A identifier_matches append e N/A data identifier_matches N/A N/A filters N/A N/A data _dict_filter N/A N/A f d N/A N/A N/A N/A d N/A N/A False N/A key N/A N/A f keys N/A N/A N/A isinstance N/A f N/A key dict N/A N/A N/A N/A _dict_filter N/A f N/A key N/A N/A d get key None N/A N/A False N/A N/A N/A N/A N/A d get key None N/A f N/A key N/A N/A False N/A True N/A N/A filtered N/A N/A e data N/A N/A N/A N/A filtered append e N/A key N/A N/A filters keys N/A N/A N/A isinstance N/A filters N/A key dict N/A N/A N/A N/A _dict_filter N/A filters N/A key N/A N/A e get key None N/A N/A N/A N/A filtered pop N/A N/A N/A N/A N/A N/A e get key None N/A filters N/A key N/A N/A N/A N/A filtered pop N/A N/A filtered N/A _get_entity N/A N/A func name_or_id filters N/A kwargs N/A N/A Return a single entity from the list returned by a given method.

    :param callable func:
        A function that takes `name_or_id` and `filters` as parameters
        and returns a list of entities to filter.
    :param string name_or_id:
        The name or ID of the entity being filtered or a dict
    :param dict filters:
        A dictionary of meta data to use for further filtering.
     N/A N/A hasattr name_or_id id N/A N/A name_or_id N/A entities N/A func name_or_id filters kwargs N/A N/A entities N/A N/A None N/A N/A N/A len entities 1 N/A N/A N/A N/A exc OpenStackCloudException N/A Multiple matches found for %s name_or_id N/A N/A entities N/A 0 N/A normalize_servers N/A N/A servers cloud_name region_name N/A N/A N/A ret N/A N/A server servers N/A N/A N/A N/A ret append N/A normalize_server server cloud_name region_name N/A ret N/A normalize_server N/A N/A server cloud_name region_name N/A N/A N/A N/A N/A server pop links None N/A N/A N/A N/A server N/A flavor pop links None N/A N/A N/A str N/A server N/A image N/A server N/A image N/A N/A N/A N/A N/A server N/A image pop links None N/A N/A server N/A region region_name N/A N/A server N/A cloud cloud_name N/A az N/A N/A server get OS-EXT-AZ:availability_zone None N/A az N/A N/A N/A server N/A az az N/A N/A server N/A volumes N/A N/A server N/A normalize_keystone_services N/A N/A services N/A N/A N/A Normalize the structure of keystone services

    In keystone v2, there is a field called "service_type". In v3, it's
    "type". Just make the returned dict have both.

    :param list services: A list of keystone service dicts

    :returns: A list of normalized dicts.
     N/A ret N/A N/A service services N/A N/A service_type N/A N/A service get type N/A N/A service get service_type N/A new_service N/A id name description type service_type enabled N/A service N/A id N/A service N/A name N/A N/A service get description None service_type service_type N/A service N/A enabled N/A N/A N/A ret append new_service N/A N/A N/A meta obj_list_to_dict ret N/A normalize_nova_secgroups N/A N/A groups N/A N/A N/A Normalize the structure of nova security groups

    This makes security group dicts, as returned from nova, look like the
    security group dicts as returned from neutron. This does not make them
    look exactly the same, but it's pretty close.

    :param list groups: A list of security group dicts.

    :returns: A list of normalized dicts.
     N/A ret N/A N/A id name description security_group_rules N/A g N/A id N/A g N/A name N/A g N/A description N/A normalize_nova_secgroup_rules N/A g N/A rules N/A g groups N/A N/A N/A meta obj_list_to_dict ret N/A normalize_nova_secgroup_rules N/A N/A rules N/A N/A N/A Normalize the structure of nova security group rules

    Note that nova uses -1 for non-specific port values, but neutron
    represents these with None.

    :param list rules: A list of security group rule dicts.

    :returns: A list of normalized dicts.
     N/A ret N/A N/A id direction ethertype port_range_min port_range_max protocol remote_ip_prefix security_group_id N/A r N/A id ingress IPv4 N/A N/A N/A r N/A from_port -1 None N/A r N/A from_port N/A N/A N/A r N/A to_port -1 None N/A r N/A to_port N/A r N/A ip_protocol N/A N/A N/A r N/A ip_range get cidr None N/A r N/A parent_group_id N/A r rules N/A N/A N/A meta obj_list_to_dict ret N/A normalize_nova_floating_ips N/A N/A ips N/A N/A N/A Normalize the structure of Neutron floating IPs

    Unfortunately, not all the Neutron floating_ip attributes are available
    with Nova and not all Nova floating_ip attributes are available with
    Neutron.
    This function extract attributes that are common to Nova and Neutron
    floating IP resource.
    If the whole structure is needed inside shade, shade provides private
    methods that returns "original" objects (e.g. _nova_allocate_floating_ip)

    :param list ips: A list of Nova floating IPs.

    :returns:
        A list of normalized dicts with the following attributes::

        [
          {
            "id": "this-is-a-floating-ip-id",
            "fixed_ip_address": "192.0.2.10",
            "floating_ip_address": "198.51.100.10",
            "network": "this-is-a-net-or-pool-id",
            "attached": True,
            "status": "ACTIVE"
          }, ...
        ]

     N/A ret N/A N/A dict id N/A ip N/A id fixed_ip_address N/A N/A ip get fixed_ip floating_ip_address N/A ip N/A ip network N/A ip N/A pool attached N/A N/A N/A N/A ip get instance_id None N/A N/A N/A ip get instance_id status ACTIVE N/A ip ips N/A N/A N/A meta obj_list_to_dict ret N/A normalize_neutron_floating_ips N/A N/A ips N/A N/A N/A Normalize the structure of Neutron floating IPs

    Unfortunately, not all the Neutron floating_ip attributes are available
    with Nova and not all Nova floating_ip attributes are available with
    Neutron.
    This function extract attributes that are common to Nova and Neutron
    floating IP resource.
    If the whole structure is needed inside shade, shade provides private
    methods that returns "original" objects (e.g.
    _neutron_allocate_floating_ip)

    :param list ips: A list of Neutron floating IPs.

    :returns:
        A list of normalized dicts with the following attributes::

        [
          {
            "id": "this-is-a-floating-ip-id",
            "fixed_ip_address": "192.0.2.10",
            "floating_ip_address": "198.51.100.10",
            "network": "this-is-a-net-or-pool-id",
            "attached": True,
            "status": "ACTIVE"
          }, ...
        ]

     N/A ret N/A N/A ip ips N/A N/A network_id N/A N/A ip get floating_network_id N/A N/A ip get network N/A N/A N/A ret append N/A dict id N/A ip N/A id fixed_ip_address N/A N/A ip get fixed_ip_address floating_ip_address N/A ip N/A floating_ip_address network network_id floating_network_id network_id port_id N/A N/A ip get port_id router_id N/A N/A ip get router_id attached N/A N/A N/A N/A ip get port_id None N/A N/A N/A ip get port_id status N/A ip N/A status N/A N/A N/A meta obj_list_to_dict ret N/A localhost_supports_ipv6 N/A N/A N/A N/A N/A Determine whether the local host supports IPv6

    We look for a default route that supports the IPv6 address family,
    and assume that if it is present, this host has globally routable
    IPv6 connectivity.
     N/A N/A N/A netifaces AF_INET6 N/A N/A N/A netifaces gateways N/A default N/A normalize_users N/A N/A users N/A N/A N/A ret N/A N/A dict id N/A N/A user get id email N/A N/A user get email name N/A N/A user get name username N/A N/A user get username default_project_id N/A N/A user get default_project_id N/A N/A user get tenantId domain_id N/A N/A user get domain_id enabled N/A N/A user get enabled N/A user users N/A N/A N/A meta obj_list_to_dict ret N/A normalize_volumes N/A N/A volumes N/A N/A N/A ret N/A N/A vol volumes N/A N/A new_vol N/A N/A vol copy N/A name N/A N/A vol get name N/A N/A vol get display_name N/A description N/A N/A vol get description N/A N/A vol get display_description N/A N/A new_vol N/A name name N/A N/A new_vol N/A display_name name N/A N/A new_vol N/A description description N/A N/A new_vol N/A display_description description N/A field N/A bootable multiattach N/A N/A N/A N/A field new_vol N/A isinstance N/A new_vol N/A field N/A six string_types N/A N/A N/A N/A new_vol N/A field None N/A N/A N/A N/A N/A N/A new_vol N/A field lower true N/A N/A N/A new_vol N/A field True N/A N/A N/A N/A N/A N/A new_vol N/A field lower false N/A N/A N/A new_vol N/A field False N/A N/A N/A ret append new_vol N/A N/A N/A meta obj_list_to_dict ret N/A normalize_domains N/A N/A domains N/A N/A N/A ret N/A N/A dict id N/A N/A domain get id name N/A N/A domain get name description N/A N/A domain get description enabled N/A N/A domain get enabled N/A domain domains N/A N/A N/A meta obj_list_to_dict ret N/A normalize_groups N/A N/A domains N/A N/A N/A Normalize Identity groups. N/A ret N/A N/A dict id N/A N/A domain get id name N/A N/A domain get name description N/A N/A domain get description domain_id N/A N/A domain get domain_id N/A domain domains N/A N/A N/A meta obj_list_to_dict ret N/A normalize_role_assignments N/A N/A assignments N/A N/A N/A Put role_assignments into a form that works with search/get interface.

    Role assignments have the structure::

        [
            {
                "role": {
                    "id": "--role-id--"
                },
                "scope": {
                    "domain": {
                        "id": "--domain-id--"
                    }
                },
                "user": {
                    "id": "--user-id--"
                }
            },
        ]

    Which is hard to work with in the rest of our interface. Map this to be::

        [
            {
                "id": "--role-id--",
                "domain": "--domain-id--",
                "user": "--user-id--",
            }
        ]

    Scope can be "domain" or "project" and "user" can also be "group".

    :param list assignments: A list of dictionaries of role assignments.

    :returns: A list of flattened/normalized role assignment dicts.
     N/A new_assignments N/A N/A assignment assignments N/A N/A new_val N/A N/A munch Munch N/A id N/A N/A assignment N/A role N/A id N/A scope N/A project domain N/A N/A N/A scope N/A assignment N/A scope N/A N/A N/A new_val N/A scope N/A N/A N/A assignment N/A scope N/A scope N/A id N/A assignee N/A user group N/A N/A N/A assignee assignment N/A N/A N/A new_val N/A assignee N/A N/A assignment N/A assignee N/A id N/A N/A N/A new_assignments append new_val N/A new_assignments N/A normalize_roles N/A N/A roles N/A N/A N/A Normalize Identity roles. N/A ret N/A N/A dict id N/A N/A role get id name N/A N/A role get name N/A role roles N/A N/A N/A meta obj_list_to_dict ret N/A normalize_stacks N/A N/A stacks N/A N/A N/A  Normalize Stack Object  N/A stack stacks N/A N/A N/A stack N/A name N/A stack N/A stack_name N/A stacks N/A normalize_flavors N/A N/A flavors N/A N/A N/A  Normalize a list of flavor objects  N/A flavor flavors N/A N/A N/A N/A flavor pop links None N/A N/A N/A flavor pop NAME_ATTR None N/A N/A N/A flavor pop HUMAN_ID None N/A N/A N/A flavor pop human_id None N/A N/A extra_specs flavor N/A N/A N/A flavor N/A extra_specs N/A N/A ephemeral N/A N/A flavor pop OS-FLV-EXT-DATA:ephemeral 0 N/A is_public N/A N/A flavor pop os-flavor-access:is_public True N/A N/A flavor N/A OS-FLV-EXT-DATA:ephemeral ephemeral N/A N/A flavor N/A ephemeral ephemeral N/A N/A flavor N/A os-flavor-access:is_public is_public N/A N/A flavor N/A is_public is_public N/A flavors N/A valid_kwargs N/A N/A N/A valid_args N/A func_wrapper N/A N/A func N/A args kwargs N/A N/A argspec N/A N/A inspect getargspec func N/A k kwargs N/A N/A N/A N/A k N/A N/A argspec args N/A 1 N/A k valid_args N/A N/A N/A TypeError N/A N/A {f}() got an unexpected keyword argument '{arg}' format f N/A N/A N/A N/A inspect stack N/A 1 N/A 3 arg k N/A N/A func args kwargs N/A decorator N/A func_wrapper N/A cache_on_arguments N/A N/A N/A cache_on_args cache_on_kwargs N/A _inner_cache_on_arguments N/A N/A func N/A N/A _cache_decorator N/A N/A obj N/A args kwargs N/A N/A the_method N/A N/A N/A N/A obj _cache cache_on_arguments cache_on_args cache_on_kwargs N/A N/A func __get__ obj N/A type obj N/A N/A the_method args kwargs N/A invalidate N/A N/A obj N/A args kwargs N/A N/A N/A N/A N/A N/A N/A N/A obj _cache cache_on_arguments func invalidate args kwargs N/A N/A N/A _cache_decorator invalidate invalidate N/A N/A _cache_decorator func func N/A N/A N/A _decorated_methods append N/A func __name__ N/A _cache_decorator N/A N/A _inner_cache_on_arguments N/A heat_exceptions N/A N/A error_message N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A heat_exc NotFound N/A e N/A N/A N/A N/A exc OpenStackCloudResourceNotFound N/A N/A {msg}: {exc} format msg error_message exc N/A str e N/A N/A Exception N/A e N/A N/A N/A N/A exc OpenStackCloudException N/A N/A {msg}: {exc} format msg error_message exc N/A str e N/A N/A contextlib contextmanager neutron_exceptions N/A N/A error_message N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A neutron_exc NotFound N/A e N/A N/A N/A N/A exc OpenStackCloudResourceNotFound N/A N/A {msg}: {exc} format msg error_message exc N/A str e N/A N/A N/A neutron_exc NeutronClientException N/A e N/A N/A N/A N/A e status_code 404 N/A N/A N/A N/A exc OpenStackCloudURINotFound N/A N/A {msg}: {exc} format msg error_message exc N/A str e N/A N/A N/A N/A exc OpenStackCloudException N/A N/A {msg}: {exc} format msg error_message exc N/A str e N/A N/A Exception N/A e N/A N/A N/A N/A exc OpenStackCloudException N/A N/A {msg}: {exc} format msg error_message exc N/A str e N/A N/A contextlib contextmanager shade_exceptions N/A N/A error_message N/A None N/A N/A Context manager for dealing with shade exceptions.

    :param string error_message: String to use for the exception message
        content on non-OpenStackCloudExceptions.

    Useful for avoiding wrapping shade OpenStackCloudException exceptions
    within themselves. Code called from within the context may throw such
    exceptions without having to catch and reraise them.

    Non-OpenStackCloudException exceptions thrown within the context will
    be wrapped and the exception message will be appended to the given error
    message.
     N/A N/A N/A N/A N/A N/A N/A N/A exc OpenStackCloudException N/A N/A N/A N/A Exception N/A e N/A N/A N/A error_message None N/A N/A error_message N/A str e N/A N/A N/A exc OpenStackCloudException error_message N/A N/A contextlib contextmanager safe_dict_min N/A N/A key data N/A N/A N/A Safely find the minimum for a given key in a list of dict objects.

    This will find the minimum integer value for specific dictionary key
    across a list of dictionaries. The values for the given key MUST be
    integers, or string representations of an integer.

    The dictionary key does not have to be present in all (or any)
    of the elements/dicts within the data set.

    :param string key: The dictionary key to search for the minimum value.
    :param list data: List of dicts to use for the data set.

    :returns: None if the field was not not found in any elements, or
        the minimum value for the field otherwise.
     N/A min_value None N/A d data N/A N/A N/A N/A key d N/A N/A d N/A key None N/A N/A N/A N/A val N/A int N/A d N/A key N/A N/A N/A ValueError N/A N/A N/A N/A exc OpenStackCloudException N/A N/A Search for minimum value failed. Value for {key} is not an integer: {value} format key key value N/A d N/A key N/A N/A N/A min_value None N/A val min_value N/A N/A min_value val N/A min_value N/A safe_dict_max N/A N/A key data N/A N/A N/A Safely find the maximum for a given key in a list of dict objects.

    This will find the maximum integer value for specific dictionary key
    across a list of dictionaries. The values for the given key MUST be
    integers, or string representations of an integer.

    The dictionary key does not have to be present in all (or any)
    of the elements/dicts within the data set.

    :param string key: The dictionary key to search for the maximum value.
    :param list data: List of dicts to use for the data set.

    :returns: None if the field was not not found in any elements, or
        the maximum value for the field otherwise.
     N/A max_value None N/A d data N/A N/A N/A N/A key d N/A N/A d N/A key None N/A N/A N/A N/A val N/A int N/A d N/A key N/A N/A N/A ValueError N/A N/A N/A N/A exc OpenStackCloudException N/A N/A Search for maximum value failed. Value for {key} is not an integer: {value} format key key value N/A d N/A key N/A N/A N/A max_value None N/A val max_value N/A N/A max_value val N/A max_value N/A parse_range N/A N/A value N/A N/A N/A Parse a numerical range string.

    Breakdown a range expression into its operater and numerical parts.
    This expression must be a string. Valid values must be an integer string,
    optionally preceeded by one of the following operators::

        - "<"  : Less than
        - ">"  : Greater than
        - "<=" : Less than or equal to
        - ">=" : Greater than or equal to

    Some examples of valid values and function return values::

        - "1024"  : returns (None, 1024)
        - "<5"    : returns ("<", 5)
        - ">=100" : returns (">=", 100)

    :param string value: The range expression to be parsed.

    :returns: A tuple with the operator string (or None if no operator
        was given) and the integer value. None is returned if parsing failed.
     N/A N/A value None N/A N/A None N/A range_exp N/A N/A re match (<|>|<=|>=){0,1}(\d+)$ value N/A N/A range_exp None N/A N/A None N/A op N/A N/A range_exp group 1 N/A num N/A int N/A N/A range_exp group 2 N/A N/A op num N/A range_filter N/A N/A data key range_exp N/A N/A N/A Filter a list by a single range expression.

    :param list data: List of dictionaries to be searched.
    :param string key: Key name to search within the data set.
    :param string range_exp: The expression describing the range of values.

    :returns: A list subset of the original data set.
    :raises: OpenStackCloudException on invalid range expressions.
     N/A filtered N/A N/A range_exp N/A N/A N/A str range_exp upper N/A N/A range_exp MIN N/A N/A key_min N/A safe_dict_min key data N/A N/A key_min None N/A N/A N/A N/A d data N/A N/A N/A N/A int N/A d N/A key key_min N/A N/A N/A N/A filtered append d N/A filtered N/A N/A N/A range_exp MAX N/A N/A key_max N/A safe_dict_max key data N/A N/A key_max None N/A N/A N/A N/A d data N/A N/A N/A N/A int N/A d N/A key key_max N/A N/A N/A N/A filtered append d N/A filtered N/A val_range N/A parse_range range_exp N/A N/A val_range None N/A N/A N/A N/A exc OpenStackCloudException N/A N/A Invalid range value: {value} format value range_exp N/A op N/A val_range N/A 0 N/A op N/A N/A d data N/A N/A d_val N/A int N/A d N/A key N/A N/A op < N/A N/A N/A d_val N/A val_range N/A 1 N/A N/A N/A N/A filtered append d N/A N/A N/A op > N/A N/A N/A d_val N/A val_range N/A 1 N/A N/A N/A N/A filtered append d N/A N/A N/A op <= N/A N/A N/A d_val N/A val_range N/A 1 N/A N/A N/A N/A filtered append d N/A N/A N/A op >= N/A N/A N/A d_val N/A val_range N/A 1 N/A N/A N/A N/A filtered append d N/A filtered N/A N/A d data N/A N/A N/A N/A int N/A d N/A key N/A val_range N/A 1 N/A N/A N/A N/A filtered append d N/A filtered N/A