def get_router_port(endpoint):
    """ get the network device and port of where the endpoint is connected to.
    
    Args:
        endpoint (endpoint): endpoint
        A routerport is a dict with the following keys:
            router (string): name of the netork device
            port (string): port on the router.
            vlan (string): VLAN
    Returns:
        dict: router, port and vlan
    """
    router = endpoint['router']
    port = endpoint['port']
    vlan = endpoint['vlan']
    return {'router':router, 'port':port, 'vlan':vlan}