'Compact any overlapping prefixes in prefix_list and return the
result'

def _compact_subnetpool_prefix_list(self, prefix_list):

    ip_set = netaddr.IPSet()
    for prefix in prefix_list:
        ip_set.add(netaddr.IPNetwork(prefix))
    ip_set.compact()
    return [x.cidr for x in ip_set.iter_cidrs()]
