'merge_bgp_import_route'

def merge_bgp_import_route(self, **kwargs):

    module = kwargs['module']
    vrf_name = module.params['vrf_name']
    af_type = module.params['af_type']
    import_protocol = module.params['import_protocol']
    import_process_id = module.params['import_process_id']
    if ((import_protocol == 'direct') or (import_protocol == 'static')):
        import_process_id = '0'
    conf_str = ((CE_MERGE_BGP_IMPORT_ROUTE_HEADER % (vrf_name, af_type, import_protocol, import_process_id)) + CE_MERGE_BGP_ADDRESS_FAMILY_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    import    route    failed.')
    cmds = []
    cmd = ('import-route    %s    %s' % (import_protocol, import_process_id))
    cmds.append(cmd)
    return cmds
