ported the code for generate the outgoing links
necessary to implement the function get_porttype_by_portname