

def bridge(request, name):
    br = brctl.addbr(name)

    def cleanup():
        br.delete()
    request.addfinalizer(cleanup)
    return br

dataset/ETHPy150Open rlisagor/pynetlinux/tests/test_brctl.py bridge/original