def get_lacp_mode(self, name):
        members = self.get_members(name)
        if not members:
            return DEFAULT_LACP_MODE

        for member in self.get_members(name):
            match = re.search(r'channel-group\s\d+\smode\s(?P<value>.+)',
                              self.get_block('^interface %s' % member))
            return match.group('value')
Returns the LACP mode for the specified Port-Channel interface
dataset/ETHPy150Open arista-eosplus/pyeapi/pyeapi/api/interfaces.py/PortchannelInterface.get_lacp_mode