'Returns the pypowervm format of the flavor.
:param inst: The Nova VM instance.
:return: A dict that can be used by the LPAR builder.'

def _format_flavor(self, inst):

    attrs = {lpar_bldr.NAME: pvm_u.sanitize_partition_name_for_api(inst.name), lpar_bldr.UUID: get_pvm_uuid(inst), lpar_bldr.MEM: inst.flavor.memory_mb, lpar_bldr.VCPU: inst.flavor.vcpus, lpar_bldr.SRR_CAPABLE: True}
    for key in inst.flavor.extra_specs.keys():
        if (not self._is_pvm_valid_key(key)):
            continue
        bldr_key = self._ATTRS_MAP.get(key)
        if (bldr_key is None):
            self._build_complex_type(key, attrs, inst.flavor)
        else:
            attrs[bldr_key] = inst.flavor.extra_specs[key]
    return attrs
