This sets the "apcs" list for realms discovered from community updates for APC communities. Previously, the empty "apcs" list for that community was used.
Also, the trust router previously accepted any realm/community pairs for
routing. That should have been APC communities only.
Finally, this also prevents configuring multiple communities with the
same ID.
Note - ignore the second commit (9caf4a7). That will be removed in a later pull request, but is unfortunately in the history for this branch.
This sets the "apcs" list for realms discovered from community updates for APC communities. Previously, the empty "apcs" list for that community was used.
Also, the trust router previously accepted any realm/community pairs for routing. That should have been APC communities only.
Finally, this also prevents configuring multiple communities with the same ID.
Note - ignore the second commit (9caf4a7). That will be removed in a later pull request, but is unfortunately in the history for this branch.