def METHOD_NAME(topo_config) -> List[Link]:
    return [
        Link(a=LinkEP(link['a']),
             b=LinkEP(link['b']),
             type=LinkType[link['linkAtoB'].upper()])
        for link in topo_config['links']
    ]