'Add pre-validated policies to internal indexes.'

def _add_policy(self, policy):

    for name in policy.alias_list:
        self.by_name[name.upper()] = policy
    self.by_index[int(policy)] = policy
