'merge_bgp_enable'

def merge_bgp_enable(self, **kwargs):

    module = kwargs['module']
    conf_str = CE_MERGE_BGP_ENABLE_HEADER
    state = module.params['state']
    if (state == 'present'):
        conf_str += '<bgpEnable>true</bgpEnable>'
    else:
        conf_str += '<bgpEnable>false</bgpEnable>'
    as_number = module.params['as_number']
    if as_number:
        conf_str += ('<asNumber>%s</asNumber>' % as_number)
    conf_str += CE_MERGE_BGP_ENABLE_TAIL
    recv_xml = self.netconf_set_config(module=module, conf_str=conf_str)
    if ('<ok/>' not in recv_xml):
        module.fail_json(msg='Error:    Merge    bgp    enable    failed.')
    cmds = []
    if (state == 'present'):
        cmd = ('bgp    %s' % as_number)
    else:
        cmd = ('undo    bgp    %s' % as_number)
    cmds.append(cmd)
    return cmds
