

def _parse_description(self, config):
    'Scans the specified config block and returns the description value\n\n        Args:\n            config (str): The interface config block to scan\n\n        Returns:\n            dict: Returns a dict object with the description value retrieved\n                from the config block.  If the description value is not\n                configured, None is returned as the value.  The returned dict\n                is intended to be merged into the interface resource dict.\n        '
    value = None
    match = re.search('description (.+)$', config, re.M)
    if match:
        value = match.group(1)
    return dict(description=value)

dataset/ETHPy150Open arista-eosplus/pyeapi/pyeapi/api/interfaces.py BaseInterface._parse_description/original