'create_bgp_confed_peer_as'

def create_bgp_confed_peer_as(self, **kwargs):

    module = kwargs['module']
    confed_peer_as_num = module.params['confed_peer_as_num']
    conf_str = (CE_CREATE_BGP_CONFED_PEER_AS % confed_peer_as_num)
    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    confed    peer    as    failed.')
    cmds = []
    cmd = ('confederation    peer-as    %s' % confed_peer_as_num)
    cmds.append(cmd)
    return cmds
