mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 07:03:07 +00:00
Merge pull request #10730 from mobash-rasool/fixes
lib: Route-map failed for OSPF routes even for matching prefixes
This commit is contained in:
commit
808fc9db0a
@ -1799,12 +1799,11 @@ static struct list *route_map_get_index_list(struct route_node **rn,
|
|||||||
/*
|
/*
|
||||||
* This function returns the route-map index that best matches the prefix.
|
* This function returns the route-map index that best matches the prefix.
|
||||||
*/
|
*/
|
||||||
static struct route_map_index *route_map_get_index(struct route_map *map,
|
static struct route_map_index *
|
||||||
const struct prefix *prefix,
|
route_map_get_index(struct route_map *map, const struct prefix *prefix,
|
||||||
void *object,
|
void *object, enum route_map_cmd_result_t *match_ret)
|
||||||
uint8_t *match_ret)
|
|
||||||
{
|
{
|
||||||
int ret = 0;
|
enum route_map_cmd_result_t ret = RMAP_NOMATCH;
|
||||||
struct list *candidate_rmap_list = NULL;
|
struct list *candidate_rmap_list = NULL;
|
||||||
struct route_node *rn = NULL;
|
struct route_node *rn = NULL;
|
||||||
struct listnode *ln = NULL, *nn = NULL;
|
struct listnode *ln = NULL, *nn = NULL;
|
||||||
@ -2559,7 +2558,7 @@ route_map_result_t route_map_apply_ext(struct route_map *map,
|
|||||||
if ((!map->optimization_disabled)
|
if ((!map->optimization_disabled)
|
||||||
&& (map->ipv4_prefix_table || map->ipv6_prefix_table)) {
|
&& (map->ipv4_prefix_table || map->ipv6_prefix_table)) {
|
||||||
index = route_map_get_index(map, prefix, match_object,
|
index = route_map_get_index(map, prefix, match_object,
|
||||||
(uint8_t *)&match_ret);
|
&match_ret);
|
||||||
if (index) {
|
if (index) {
|
||||||
index->applied++;
|
index->applied++;
|
||||||
if (rmap_debug)
|
if (rmap_debug)
|
||||||
|
Loading…
Reference in New Issue
Block a user