yaml test scenario with host attributes

Is it possible to specify LG's in the test yaml file using the host attributes?