mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 22:50:14 +00:00
Use metric for default-originate with route-map if applied
Signed-off-by: Donatas Abraitis donatas.abraitis@gmail.com
This commit is contained in:
parent
8f61e2b13e
commit
b156c65dc0
@ -690,6 +690,7 @@ void subgroup_default_originate(struct update_subgroup *subgrp, int withdraw)
|
||||
aspath = attr.aspath;
|
||||
|
||||
attr.local_pref = bgp->default_local_pref;
|
||||
attr.flag |= ATTR_FLAG_BIT(BGP_ATTR_MULTI_EXIT_DISC);
|
||||
|
||||
memset(&p, 0, sizeof(p));
|
||||
p.family = afi2family(afi);
|
||||
@ -724,6 +725,8 @@ void subgroup_default_originate(struct update_subgroup *subgrp, int withdraw)
|
||||
peer->default_rmap[afi][safi].map,
|
||||
&rn->p, RMAP_BGP, &info);
|
||||
|
||||
attr.med = info.attr->med;
|
||||
|
||||
/* The route map might have set attributes. If
|
||||
* we don't flush them
|
||||
* here, they will be leaked. */
|
||||
|
Loading…
Reference in New Issue
Block a user