'Return the nsp that has the fewest active vluns.'

def _get_least_used_nsp(self, common, vluns, nspss):

    nsp_counts = {}
    for nsp in nspss:
        nsp_counts[nsp] = 0
    current_least_used_nsp = None
    for vlun in vluns:
        if vlun['active']:
            nsp = common.build_nsp(vlun['portPos'])
            if (nsp in nsp_counts):
                nsp_counts[nsp] = (nsp_counts[nsp] + 1)
    current_smallest_count = sys.maxsize
    for (nsp, count) in nsp_counts.items():
        if (count < current_smallest_count):
            current_least_used_nsp = nsp
            current_smallest_count = count
    return current_least_used_nsp
