def is_auto_address_subnet(subnet):
    modes = [constants.IPV6_SLAAC, constants.DHCPV6_STATELESS]
    return (subnet['ipv6_address_mode'] in modes
            or subnet['ipv6_ra_mode'] in modes)
Check if subnet is an auto address subnet.
dataset/ETHPy150Open openstack/neutron/neutron/common/ipv6_utils.py/is_auto_address_subnet