def addif(self, iface):
if type(iface) == ifconfig.Interface:<EOL><INDENT>devindex = iface.index<EOL><DEDENT>else:<EOL><INDENT>devindex = ifconfig.Interface(iface).index<EOL><DEDENT>ifreq = struct.pack('<STR_LIT>', self.name, devindex)<EOL>fcntl.ioctl(ifconfig.sockfd, SIOCBRADDIF, ifreq)<EOL>return self<EOL>
Add the interface with the given name to this bridge. Equivalent to
            brctl addif [bridge] [interface].