'create_bgp_peer'

def create_bgp_peer(self, **kwargs):

    module = kwargs['module']
    vrf_name = module.params['vrf_name']
    peer_addr = module.params['peer_addr']
    remote_as = module.params['remote_as']
    conf_str = (((CE_CREATE_BGP_PEER_HEADER % (vrf_name, peer_addr)) + ('<remoteAs>%s</remoteAs>' % remote_as)) + CE_CREATE_BGP_PEER_TAIL)
    recv_xml = self.netconf_set_config(module=module, conf_str=conf_str)
    if ('<ok/>' not in recv_xml):
        module.fail_json(msg='Error:    Create    bgp    peer    failed.')
    cmds = []
    cmd = ('peer    %s    as-number    %s' % (peer_addr, remote_as))
    cmds.append(cmd)
    return cmds
