'Merge trap global'

def merge_trap_global(self):

    conf_str = CE_MERGE_TRAP_GLOBAL_HEADER
    if self.trap_time_stamp:
        conf_str += ('<trapTimeStamp>%s</trapTimeStamp>' % self.trap_time_stamp.upper())
    if (self.trap_buff_enable != 'no_use'):
        conf_str += ('<icTrapBuffEn>%s</icTrapBuffEn>' % self.trap_buff_enable)
    if self.trap_buff_size:
        conf_str += ('<trapBuffSize>%s</trapBuffSize>' % self.trap_buff_size)
    conf_str += CE_MERGE_TRAP_GLOBAL_TAIL
    recv_xml = self.netconf_set_config(conf_str=conf_str)
    if ('<ok/>' not in recv_xml):
        self.module.fail_json(msg='Error:    Merge    trap    global    failed.')
    if self.trap_time_stamp:
        cmd = ('info-center    timestamp    trap    ' + TIME_STAMP_DICT.get(self.trap_time_stamp))
        self.updates_cmd.append(cmd)
    if (self.trap_buff_enable != 'no_use'):
        if (self.trap_buff_enable == 'true'):
            cmd = 'info-center    trapbuffer'
        else:
            cmd = 'undo    info-center    trapbuffer'
        self.updates_cmd.append(cmd)
    if self.trap_buff_size:
        cmd = ('info-center    trapbuffer    size    %s' % self.trap_buff_size)
        self.updates_cmd.append(cmd)
    self.changed = True
