ssa.c: Add remaining support for distribution nodes

Tested with the following configurations:
1. core <-> distribution <-> 2 access nodes
2. core <-> distribution <-> access <-> ACM

Signed-off-by: Hal Rosenstock <hal@mellanox.com>