add support for printing range of ports. Example
'swp1, swp2, swp3, swp10', becomes 'swp1-4, swp10'