'Delete the first listed IPv6 address that falls within a given
prefix.'

def delete_ipv6_addr_with_prefix(self, device_name, prefix, namespace):

    device = ip_lib.IPDevice(device_name, namespace=namespace)
    net = netaddr.IPNetwork(prefix)
    for address in device.addr.list(scope='global', filters=['permanent']):
        ip_address = netaddr.IPNetwork(address['cidr'])
        if (ip_address in net):
            device.delete_addr_and_conntrack_state(address['cidr'])
            break
