

def _parse_vlans(self, config):
    vlans = frozenset(re.findall('vxlan vlan (\\d+)', config))
    values = dict()
    for vid in vlans:
        values[vid] = dict()
        regexp = 'vxlan vlan {} vni (\\d+)'.format(vid)
        match = re.search(regexp, config)
        values[vid]['vni'] = (match.group(1) if match else None)
        regexp = 'vxlan vlan {} flood vtep (.*)$'.format(vid)
        matches = re.search(regexp, config, re.M)
        flood_list = (matches.group(1).split(' ') if matches else [])
        values[vid]['flood_list'] = flood_list
    return dict(vlans=values)

dataset/ETHPy150Open arista-eosplus/pyeapi/pyeapi/api/interfaces.py VxlanInterface._parse_vlans/original