def METHOD_NAME(self, bridgename, name):
    with pyroute2.IPRoute() as ipr:
        idx = ipr.link_lookup(ifname=name)[0]
        s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0)
        ifr = struct.pack("16si", b"br42", idx)
        fcntl.ioctl(s, 0x89A3, ifr)  # SIOCBRDELIF
        s.close()