17 valid_uuid_pattern = re.compile(
"^[0-9a-f]{32}$")
    22       A not very reliable way to check if the last 32 characters of a string    23       are a uuid postfix. Not reliable because if the prefix characters are    24       [0-9a-f] then it will accept shorter combinations of strings. Practical    25       because who will give a gateway a uuid style name?    29     uuid_potential_part = name[-32:]
    30     match = valid_uuid_pattern.match(uuid_potential_part)
    31     return False if match 
is None else True    36       Strips the 16 byte hash (in hex format) from a gateway name, leaving the base name.    37       Note, 16 hex values represents 32 characters    39       @param gateway_name : base_name + 16 byte hex formatted hash    41       @return base name without the hash    46         return gateway_name[:-32]
    50 if __name__ == 
'__main__':
 def gateway_basename(gateway_name)
def is_uuid_postfixed(name)