'get evpn peer group name enable list'

def get_peers_group_enable(self):

    if (len(self.config_list) != 2):
        return None
    self.config_list = self.config.split('l2vpn-family    evpn')
    get1 = re.findall('group    (\\S+)    external', self.config_list[0])
    get2 = re.findall('group    (\\S+)    internal', self.config_list[0])
    if ((not get1) and (not get2)):
        return None
    else:
        peer_groups = list()
        for item in get1:
            cmd = ('peer    %s    enable' % item)
            exist = is_config_exist(self.config_list[1], cmd)
            if exist:
                peer_groups.append(dict(peer_group_name=item, peer_enable='true'))
            else:
                peer_groups.append(dict(peer_group_name=item, peer_enable='false'))
        for item in get2:
            cmd = ('peer    %s    enable' % item)
            exist = is_config_exist(self.config_list[1], cmd)
            if exist:
                peer_groups.append(dict(peer_group_name=item, peer_enable='true'))
            else:
                peer_groups.append(dict(peer_group_name=item, peer_enable='false'))
        return peer_groups
