def get_router_table(routers):
    'Formats output from _get_routers and returns a table. '
    table = formatting.Table(['Datacenter', 'Hostname', 'Backend Router Id'], 'Available Routers')
    for router in routers:
        datacenter = router['topLevelLocation']['longName']
        table.add_row([datacenter, router['hostname'], router['id']])
    return table
Formats output from _get_routers and returns a table.
def get_router_table(routers):
    ' '
    table = formatting.Table(['Datacenter', 'Hostname', 'Backend Router Id'], 'Available Routers')
    for router in routers:
        datacenter = router['topLevelLocation']['longName']
        table.add_row([datacenter, router['hostname'], router['id']])
    return table