def down(self):
<EOL>ifreq = struct.pack('<STR_LIT>', self.name, <NUM_LIT:0>)<EOL>flags = struct.unpack('<STR_LIT>', fcntl.ioctl(sockfd, SIOCGIFFLAGS, ifreq))[<NUM_LIT:1>]<EOL>flags = flags & ~IFF_UP<EOL>ifreq = struct.pack('<STR_LIT>', self.name, flags)<EOL>fcntl.ioctl(sockfd, SIOCSIFFLAGS, ifreq)<EOL>
Bring down the bridge interface. Equivalent to ifconfig [iface] down.