'get_bgp_peer'

def get_bgp_peer(self, **kwargs):

    module = kwargs['module']
    vrf_name = module.params['vrf_name']
    if vrf_name:
        if ((len(vrf_name) > 31) or (len(vrf_name) == 0)):
            module.fail_json(msg=('Error:    The    len    of    vrf_name    %s    is    out    of    [1    -    31].' % vrf_name))
    conf_str = (((CE_GET_BGP_PEER_HEADER % vrf_name) + '<remoteAs></remoteAs>') + CE_GET_BGP_PEER_TAIL)
    xml_str = self.netconf_get_config(module=module, conf_str=conf_str)
    result = list()
    if ('<data/>' in xml_str):
        return result
    else:
        re_find = re.findall('.*<peerAddr>(.*)</peerAddr>.*\\s.*<remoteAs>(.*)</remoteAs>.*', xml_str)
        if re_find:
            return re_find
        else:
            return result
