def getall(self):
        interfaces_re = re.compile(r'(?<=^interface\s)([Et|Po].+)$', re.M)

        response = dict()
        for name in interfaces_re.findall(self.config):
            interface = self.get(name)
            if interface:
                response[name] = interface
        return response
Returns a dict object to all Switchports
dataset/ETHPy150Open arista-eosplus/pyeapi/pyeapi/api/switchports.py/Switchports.getall