MT#10591 lib/get_all_cluster_set_[shared]_ip*: add role and type args

Now be can select the type of the interfaces we want

Change-Id: I4a8d188e338110a31b2edb3d799427803a785912
(cherry picked from commit b68b1c487b5c3b6a8ee11540d8826c163e2335f5)