def is_auto_address_subnet(subnet):
 modes = [const.IPV6_SLAAC, const.DHCPV6_STATELESS]
 return ((subnet['ipv6_address_mode'] in modes) or (subnet['ipv6_ra_mode'] in modes))

def is_auto_address_subnet ( subnet ) : modes = [ const . IPV6_SLAAC , const . DHCPV6_STATELESS ] return ( ( subnet [ 'ipv6_address_mode' ] in modes ) or ( subnet [ 'ipv6_ra_mode' ] in modes ) )
check if subnet is an auto address subnet .