diff options
| -rw-r--r-- | bgpd/bgp_evpn.c | 1 | ||||
| -rw-r--r-- | lib/routemap.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c index c6a134114c..8d8e3ffd2e 100644 --- a/bgpd/bgp_evpn.c +++ b/bgpd/bgp_evpn.c @@ -2340,6 +2340,7 @@ bgp_create_evpn_bgp_path_info(struct bgp_path_info *parent_pi, memcpy(&pi->extra->label, &parent_pi->extra->label, sizeof(pi->extra->label)); pi->extra->num_labels = parent_pi->extra->num_labels; + pi->extra->igpmetric = parent_pi->extra->igpmetric; } bgp_path_info_add(dest, pi); diff --git a/lib/routemap.c b/lib/routemap.c index 9dc1c7c82d..34166c180d 100644 --- a/lib/routemap.c +++ b/lib/routemap.c @@ -1325,7 +1325,7 @@ enum rmap_compile_rets route_map_add_match(struct route_map_index *index, * the same as the existing configuration then, * ignore the duplicate configuration. */ - if (strcmp(match_arg, rule->rule_str) == 0) { + if (rulecmp(match_arg, rule->rule_str) == 0) { if (cmd->func_free) (*cmd->func_free)(compile); |
