

def getall(self):
    'Returns all interfaces in a dict object.\n\n        Returns:\n            A Python dictionary object containing all interface\n            configuration indexed by interface name::\n\n                {\n                    "Ethernet1": {...},\n                    "Ethernet2": {...}\n                }\n\n        '
    interfaces_re = re.compile('(?<=^interface\\s)(.+)$', re.M)
    response = dict()
    for name in interfaces_re.findall(self.config):
        interface = self.get(name)
        if interface:
            response[name] = interface
    return response

dataset/ETHPy150Open arista-eosplus/pyeapi/pyeapi/api/interfaces.py Interfaces.getall/original