def process_port_ref_shorthand(port, port_key='port'):
    """Parse shorthand form of port reference into a dictionary"""
    if type(port) is str:
        parts = port.split('/')
        port = {
            'short_name': port,
            'component':  parts[0],
            port_key:     parts[1]
        }
    else:
        port['short_name'] = f"{port['component']}/{port[port_key]}"

    return port