def normalize_flavors(flavors):
    for flavor in flavors:
        flavor.pop('links', None)
        flavor.pop('NAME_ATTR', None)
        flavor.pop('HUMAN_ID', None)
        flavor.pop('human_id', None)
        if 'extra_specs' not in flavor:
            flavor['extra_specs'] = {}
        ephemeral = flavor.pop('OS-FLV-EXT-DATA:ephemeral', 0)
        is_public = flavor.pop('os-flavor-access:is_public', True)
        # Make sure both the extension version and a sane version are present
        flavor['OS-FLV-EXT-DATA:ephemeral'] = ephemeral
        flavor['ephemeral'] = ephemeral
        flavor['os-flavor-access:is_public'] = is_public
        flavor['is_public'] = is_public

    return flavors
Get fixed IP by id or raise if it does not exist.
dataset/ETHPy150Open openstack-infra/shade/shade/_utils.py/normalize_flavors--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/db/api.py/fixed_ip_get