def METHOD_NAME(self, setUp, encap_type, setup_neighbors):
    '''
        Verify that the CRM counter values for ipv4_route, ipv4_nexthop,
        ipv6_route and ipv6_nexthop are updated as per the vxlan route
        configs.
    '''
    self.setup = setUp
    outer_layer_version = ecmp_utils.get_outer_layer_version(encap_type)
    number_of_routes_configured = 0
    set_of_unique_endpoints = set()
    for vnet in list(self.setup[encap_type]['dest_to_nh_map'].keys()):
        number_of_routes_configured += \
            len(list(self.setup[encap_type]
                ['dest_to_nh_map'][vnet].keys()))
        dest_to_nh_map = self.setup[encap_type]['dest_to_nh_map'][vnet]
        for _, nexthops in list(dest_to_nh_map.items()):
            set_of_unique_endpoints = \
                set_of_unique_endpoints | set(nexthops)
    crm_output = \
        self.setup['duthost'].get_crm_resources()['main_resources']
    self.crm_assert(
        crm_output,
        'ip{}_route'.format(outer_layer_version),
        number_of_routes_configured)
    self.crm_assert(
        crm_output,
        'ip{}_nexthop'.format(outer_layer_version),
        setup_neighbors)