Add function for excluding hosts on gridka.

Add function for excluding hosts on gridka.