Looking to collect a subset of the interfaces of a LAN Switch

Someone else in the past was looking to solve the same request:

I will take a look at this and see if I can work the idea out.
Thanks!