def METHOD_NAME(tgen):
    for routern in range(1, 3):
        tgen.add_router("r{}".format(routern))
    switch = tgen.add_switch("s1")
    switch.add_link(tgen.gears["r1"])
    switch.add_link(tgen.gears["r2"])