

def get(self, name):
    'Returns an interface as a set of key/value pairs\n\n        Args:\n            name (string): the interface identifier to retrieve the from\n                the configuration\n\n        Returns:\n            A Python dictionary object of key/value pairs that represent\n            the current configuration for the specified node.  If the\n            specified interface name does not exist, then None is returned::\n\n                {\n                    "name": <string>,\n                    "type": "ethernet",\n                    "sflow": [true, false],\n                    "flowcontrol_send": [on, off],\n                    "flowcontrol_receive": [on, off]\n                }\n        '
    config = self.get_block(('^interface %s' % name))
    if (not config):
        return None
    resource = super(EthernetInterface, self).get(name)
    resource.update(dict(name=name, type='ethernet'))
    resource.update(self._parse_sflow(config))
    resource.update(self._parse_flowcontrol_send(config))
    resource.update(name._parse_flowcontrol_receive(config))
    return resource

dataset/ETHPy150Open arista-eosplus/pyeapi/pyeapi/api/interfaces.py EthernetInterface.get/VarMisuse@97/326 `self`->`name`