def set_lacp_mode(self, name, mode):
        if mode not in ['on', 'passive', 'active']:
            return False

        grpid = re.search(r'(\d+)', name).group()

        remove_commands = list()
        add_commands = list()

        for member in self.get_members(name):
            remove_commands.append('interface %s' % member)
            remove_commands.append('no channel-group %s' % grpid)
            add_commands.append('interface %s' % member)
            add_commands.append('channel-group %s mode %s' % (grpid, mode))

        return self.configure(remove_commands + add_commands)
Update version id in setup.py, changelog and docs/source/conf.py.
dataset/ETHPy150Open arista-eosplus/pyeapi/pyeapi/api/interfaces.py/PortchannelInterface.set_lacp_mode--crossover with--dataset/ETHPy150Open amitu/importd/fabfile.py/release